Now, I am aware that I was made a fool of last year by asking for a tutorial for this but, 9 months later, some programming skills in my head and a much better game creator, I have now decided to make this tutorial which I wanted so badly.
So lets start off by getting the starting actors; main guy, bad guy, background, foreground, area and bullet.
Find their animations in the folder. I am only using basic graphics and am using a background someone gave me.
Make the background have lowest z depth and try to line up with foreground.
Now add their corresponding animations.
Click on main guy and add controls by doing
key down- left- script editor- x=x-10;
key down- right- script editor- x=x+10;
key down- up- script editor- y=y-10;
key down- down- script editor- y=y+10;
Now he can move.
Click on view and make their parent main and put it so main is in the centre
Go back to main and go to events;
Collision- On any side of foreground- Repeat=YES- (this should now show 4 1s going down) on the 3rd 1, change to 0;
Now save and test out his movement. WARNING, you have done nothing wrong if collision is irradic in some areas, the graphics were very quickly made.
Click on bullet and select create at start up and change it to no
Then add to events;
create actor- script editor- angle = direction(xscreen, yscreen, xmouse, ymouse);
directional_velocity = 15;
(please note that the ; means end of line)
Now click on area, make it very very transparent but still slightly visible and make its parent be main.
Make it have max z-depth and try to position it so main is in the very centre
Lick on events and;
Mouse Button Down- Left- Create Actor- Bullet
Now save again
Click on bad guy and on events;
Draw Actor- Move To- Main, avoid foreground, velocity=10.5
Collision-Any side of foreground, repeat=yes- 3rd 1 should become a 0
Collision- Any side of bullet- Destroy actor- Event Actor
Collision- Any side of bullet- Destroy Actor- Collide Actor
You can continue on. There is more I have left out but I will only add it if some one replies that they do.
Bye for now