Score Obtain Display?
Hello, I have a game where you try to get a missile to hit bouncy balls. I would like to show the player how many points he/she gets for each ball destroyed. This can easily be done if the balls always give you the same number of points, but in my game this isn't he case. I have a self attribute in the missile actor that keeps track of the score multiplier. It starts at 0, and every time one missile hits a ball, the multiplier goes up by one, using this equation: game.score + self.multiplier * 10. The first ball a missile hits will give you 10 points, the second will give you 20 points, etc. The multiplier is there to encourage players to try to hit as many balls as they can with one missile, to rack up points.
I'd like to have an actor that displays the amount of points you get for each ball, where each ball is destroyed. The actor will be spawned by the ball actor in the collision with missile rule, where it is also set to destroy itself. I want to set the actor up so that it will display something like "+10" and I'll probably have it float upwards a bit for cool effects. The problem, as stated above, is to get the actor to display the proper amount of points you get.
If you're getting kind of lost in this post, think of Super Mario Bros. when you kick a shell at a line of enemies. That's what I want.
I'd like to have an actor that displays the amount of points you get for each ball, where each ball is destroyed. The actor will be spawned by the ball actor in the collision with missile rule, where it is also set to destroy itself. I want to set the actor up so that it will display something like "+10" and I'll probably have it float upwards a bit for cool effects. The problem, as stated above, is to get the actor to display the proper amount of points you get.
If you're getting kind of lost in this post, think of Super Mario Bros. when you kick a shell at a line of enemies. That's what I want.
Comments
I can't guarantee this will work but it's worth a shot. Good Luck!