Posted By
|
Message
|
lauri
Registered 04/05/2003
Points 57
|
29th July, 2003 at 03:46:55 -
how can i make the man in platform movement to shoot only right and to left.
make things klik.
|
Shen Possibly Insane
Registered 14/05/2002
Points 3497
|
29th July, 2003 at 04:08:28 -
User presses right arrow: Set Flag 0 on
User presses left arrow: Set Flag 0 off
User presses shift and Flag 0 is on: Shoot bullet right
User presses shift and Flag 0 is off: Shoot bullet left
Muaha, simpleness
gone fishin'
|
lauri
Registered 04/05/2003
Points 57
|
29th July, 2003 at 04:10:19 -
tanx
make things klik.
|
Assault Andy Administrator
I make other people create vaporware
Registered 29/07/2002
Points 5686
|
29th July, 2003 at 04:11:48 -
There was an example a while back but it isnt very hard to code:
Player pressed right - flag 0 = false
Player pressed left - flag 1 = true
Player pressed Fire 1
+ flag 0 = false - Shoot bullet right
Player pressed Fire 1
+ flag 0 = True - Shoot bullet Left
There you go. You will have to make it so the player starts off facing right, otherwise when they press shoot before they move the bullet will go off in another direction.
-Andy
Creator of Faerie Solitaire:
http://www.create-games.com/download.asp?id=7792
Also creator of ZDay20 and Dungeon Dash.
http://www.Jigxor.com
http://twitter.com/JigxorAndy
|
Rycon
Registered 20/09/2002
Points 996
|
29th July, 2003 at 11:26:57 -
I set a counter, and used the old rule for 4 way directions. 1 = down, 2 = left, 3 = up, 4 = right. So if your player is facing left, set counter to 2. If the player presses shoot, and the counter = 2, shoot bullet in left direction.
We are the music makers, we are the dreamers of dreams...
|
|
|