The Daily Click ::. Forums ::. Klik Coding Help ::. I want bullets to shoot only left and right, not down when character jumps
 

Post Reply  Post Oekaki 
 

Posted By Message

Marcello64



Registered
  16/05/2007
Points
  144
23rd July, 2008 at 22:48:38 -

I have my character shooting bullets, but I only want the bullet to shoot in the left or right direction, BUT when my character jumps it shoots down.. most likely because I have the event as "Shoot in player direction"

Am i going to have to create an invisible active object that follows the player, or is there a better way?

Thanks!

 
Sig: I'm not the Marcello from Cellosoft.

Codemonkey

Always Serious

Registered
  06/11/2007
Points
  164

Code MonkeyKlikCast StarVIP MemberAttention GetterWii Owner360 OwnerThe Cake is a LieCardboard BoxHero of TimeI'm a Storm Trooper
I'm on a BoatIt's-a me, Mario!PS3 OwnerSonic SpeedGOTM - SEPTEMBER 2009 - WINNER!Evil klikerPokemon Ball!I am an April Fool
23rd July, 2008 at 22:53:49 -

It seems you are using default movement? If you are try this..

Upon pressing shift (then right click on this event and click insert)
+Player direction is right: shoot right

then do the same for the left direction.

 
You can log off any time you like, but you can't ever leave.

columbo borgi :C



Registered
  07/12/2003
Points
  296

VIP Member
23rd July, 2008 at 22:55:22 -

if button right pressed - set a value to 1
if button left pressed - set that value to 2

if fire button is pressed
+that value is 1 - then shot right

if fire button is pressed
+that value is 2 - then shot left


this is my solution :C

 
:C

Mkingy



Registered
  05/07/2003
Points
  4771

Box Blue
23rd July, 2008 at 23:01:12 -

Not sure your solution would work codemonkey; surely the player direction would be down [hence it shooting down in the first place] However if you were referring to the animation direction it'd work.

Borgi's is more fail safe heh.

 
n/a
   

Post Reply



 



Advertisement

Worth A Click