Shooting an Enemy (help)
DillonV
South FloridaMember Posts: 26
Hello everyone, i'm having a little trouble with something and I was wondering if someone can help me out. I'm new to game salad so I apologize in advance if I don't word this correctly. In my current scene, there are 3 actors at the bottom of the screen that remain still, and each are different colors. These three actors are the main player controllers. In the game, different colored enemies spawn in the scene (for example, the green actor has to shoot the green enemy, blue actor shoots blue enemy, ect.). This is where i'm having trouble though...I want players to have to click on the right color actor at the bottom first, then click on the right color enemy on the screen. When the enemy is clicked, the bullet spawns from the bottom actor and shoots the enemy. I hope this makes sense lol...
Thanks in advance.
Thanks in advance.
Comments
I'd start with a When touched is pressed on your shooting actor-spawn actor (your bullet).
For the bullet, set up a rule move to (or accelerate) towards the next touch coordinates. You could move (or accelerate) to the coordinates, or simply in that direction (I think). I think start with another When Touch is pressed rule -- move to...
A few different choices, including move,move to, rotate, accelerate-you'd have to play around to find which works best for you.
Hopefully get you started, someone else can probably tell you exactly what to do.
Age of Dominion RTS for iOS
Age of Dominion RTS for Android
Hope this helps.
https://www.dropbox.com/s/hodq4mwbffk8uuj/colorshoot.zip