Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Neikke on June 12, 2019, 07:31:12 PM

Title: How to make Floating Scores? [SOLVED]
Post by: Neikke on June 12, 2019, 07:31:12 PM
Guys, please help!

I want to create a popping up score numbers like they have it in Angry Birds for example. What would be the right workflow for that kind of task?

As I imagine it - my Coin gets collided with Player, which triggers 2D event: Creates a text "100 POINTS" at the origin of that Coin and at the Size. And then score number disappears. So, very simple thing.

I already have UI Camera with Canvas inside of it. So should I create my text there? Or should I create an empty object with text component added to it? Or is there an action which would create any text for me wherever I want? Sorry if it sounds stupid.. I just really need some heads up.
Title: Re: How to make a Text popup?
Post by: heavygunner on June 12, 2019, 11:56:15 PM
I also searching for this. Btw, found this one. I think, we can enable/disable actions to display score. or Have to animation. I didn't tried it yet. Check this https://hutonggames.com/playmakerforum/index.php?topic=9582.msg45480#msg45480
Title: Re: How to make a Text popup?
Post by: Neikke on June 13, 2019, 04:56:19 AM
heavygunner, to be honest didn't understand anything there, though I imported the project given in that post. The post is also quite outdated so not sure everything works as it should there.

UPDATE: sorry - me stupid. Forgot to import Playmaker. So it looks to be working actually. At least in a clean simple project. Gonna try it in my game to see if it works too! Thanks!
Title: Re: How to make a Text popup?
Post by: Neikke on June 14, 2019, 01:37:43 AM
Hey guys, I still need help with how to create a score popups similar to this but for mobile platforms:
Any heads up please?
Title: Re: How to make Floating Scores?
Post by: jeanfabre on July 16, 2019, 04:44:28 AM
Hi,

Your first stop is to check out the sample uGuiTextFollowGameObject on the Ecosystem.

 it will give you all the keys to position a UI text or panel above a 3d object, then you can animate that object up easily by moving its position up.

Bye,

 Jean
Title: Re: How to make Floating Scores?
Post by: Neikke on July 16, 2019, 12:48:06 PM
Hi,

Your first stop is to check out the sample uGuiTextFollowGameObject on the Ecosystem.

 it will give you all the keys to position a UI text or panel above a 3d object, then you can animate that object up easily by moving its position up.

Bye,

 Jean

Thanks a lot Jean!
Title: Re: How to make Floating Scores? [SOLVED]
Post by: rizwanash on July 16, 2019, 04:01:46 PM
The way i achieved this is i Animated an object (+1) with position, Scale properties and then simply spawn them on the right spot.