Adding Scores when no Player
G.A.S.P.Industries
Member, PRO Posts: 25
Hi,
Very new to this gamesalad and programming in general. I have gotten the score display and now I just want to add scores. I looked at the tutorial about adding scores except I have no actor for the player because I am creating a game where it is a clicking game. When you click on spawning actors it gets destroyed and gives you a score instead. So I have my Rule on the actor to say that when mouse is pressed down and also when mouse position is inside the actor gets destroyed. My problem is how do I add score where there is no "player" actor or "enemy actor" to overlap/collide with. How would I do that?
I tried to use the search function but couldn't find any info unless I am not searching correctly. Any help is very much appreciated. This is actually fun stuff :P
Very new to this gamesalad and programming in general. I have gotten the score display and now I just want to add scores. I looked at the tutorial about adding scores except I have no actor for the player because I am creating a game where it is a clicking game. When you click on spawning actors it gets destroyed and gives you a score instead. So I have my Rule on the actor to say that when mouse is pressed down and also when mouse position is inside the actor gets destroyed. My problem is how do I add score where there is no "player" actor or "enemy actor" to overlap/collide with. How would I do that?
I tried to use the search function but couldn't find any info unless I am not searching correctly. Any help is very much appreciated. This is actually fun stuff :P
Comments
If you haven't already done so you need to make a global attribute integer called score.
Darren.