I am a newbie here. Have read through the tutorials and watched the Space Invaders demo but am still having trouble making a spaceship to shoot. I am probably just missing one detail but not sure what it is. Are there any detailed instructions on how to do this?
Are you trying to get the enemy to shoot towards you? It should be yvelocity than. Y is for up and down and X is for side to side.
To make them move down you need to have them connected to "base_enemy" and have two sensors on both sides so if "enemy" touches it they will go "down" and "side to side"
I'm not sure how to do all this because I've been busy with learning c++.
Yes, I want the enemy to shoot back. On 2:12 through 2:26 of the video, he shows a script but I am having trouble reading it because of the font color.
Ok 1st click the enemy bullet actor Click on add// click on draw actor // click on script editor // yvelocity=+10;
Ok now click on the enemy click on add // click on create actor // click on create timer a small windows pops up after you give it a name on the line below it type 250 . Now the go down to the line below that and erase the * symbol type 500. Now click on and go out of that.
Now for the last part click on the enemy again click on add // click on timer // choose the timer you just made // now add action // create actor // choose the enemy bullet and click ok
Now run you game and the enemies will be firing at you!!! enjoy
If you would like to make things shoot, you should first open up Global Code
Global Code:
Click variables Click Add Name the variable bul_spd click where it says Integer, and select "Real" Click where it says Global Variable, and click Actor variable Click Okay
Close global code now, and go to your bullet actor. On the bullet actor, add this code
I understand the concepts pretty well. I am just having trouble reading the light blue font scripts because my room has too much light. I will try it again tonight when I have a dark room.