The Daily Click ::. Forums ::. Klik Coding Help ::. Games factory - firing question
 

Post Reply  Post Oekaki 
 

Posted By Message

Penguin Seph



Registered
  11/12/2002
Points
  1338
19th August, 2005 at 11:14:46 -

What I do for things like this is I make it so that

When left button is pressed value A is set to 1
When right button is pressed value A is set to 2
When the player presses fire1 and value A is set to 1 it fires left
When the player presses fire1 and value A is set to 2 it fires right

It's not much different, but if you have the A value change because of the button the player press to move left or right, it workes better. I used this in my (Now old) game (well demo) Paul the Penguin and it worked fine. You could use something different from value's like flags if you want.

 
Hi!

Radix

hot for teacher

Registered
  01/10/2003
Points
  3139

Has Donated, Thank You!VIP MemberGOTW WINNER CUP 1!GOTW WINNER CUP 2!GOTW WINNER CUP 3!GOTW WINNER CUP 4!
19th August, 2005 at 11:22:08 -

This thread is seventeen months old, Seph.

 
n/a

Penguin Seph



Registered
  11/12/2002
Points
  1338
19th August, 2005 at 11:28:48 -

Opps.

 
Hi!
   

Post Reply



 



Advertisement

Worth A Click