Hi friends, I need to create a floating sprite that represent the score when you hit something. So when I hit some objetc I want to create a object that start at colision point and move up some pixels and disapear. What?s the simplest way to do that? I already put fade behav in the object ... and I know that I can decrease Y during some time but I want to know if C2 have a simple way to do that?
I would suggest the ease tween plugin (actually, its a behavior). On the collision, spawn your score sprite(which would have the ease tween behavior), and then ease tween would let you send it the direction you want and destroy it at a set time.
Sorry about all the edits, you would also generally get faster help if you post these questions in the "how to" forum.
http://www.scirra.com/forum/behavior-easetween_topic53288.html
Develop games in your browser. Powerful, performant & highly capable.
You don't even need a third-part plugin.
Bullet behavior is more than enough.
Bullet doest not work because the object is not facing at the direction I need.
Then rotate the object as well to face the direction you want.
Bullet does work if you set its property "Set angle" to no like in the example.
If the direction of the bullet doesn't suit you, modify the angle of motion like in the example.
And to boot, toss the fade behavior on it and it'll fade out and destroy itself.
You could use the bullet behavior on a text object that shows the score, but I think it would look ugly. Maybe you should look into sprite fonts.
scirra.com/forum/plugin-spritefont-28th-august-2012_topic45876_page1.html
edit: OR, if you're just going to show "+3" or something like that, you wouldn't need sprite font, I guess.