The Daily Click ::. Forums ::. Klik Coding Help ::. Help with shooting from weapon!
 

Post Reply  Post Oekaki 
 

Posted By Message

..:.Phox.:..



Registered
  18/02/2005
Points
  646

VIP MemberHero of TimeI like Aliens!Cardboard BoxAttention Getter
9th April, 2005 at 15:24:24 -

Hello (again)

I need some new help!!

Here I go:

I already have the arm with the gun attached to the body and functunating correctly 360. NOW I already made it so that "when player clicks LMB create bullet at .... and then shoot it in the same direction as the weapon. BUT I can only shoot twice and then it doesn't fire again! It continues making the shooting animation but it doesn't shoot anymore bullets!

Can somebody help me?
Please make the full step by step "HOW TO"

THANX

 
Profile edited as it messed the layout of the site up.

Knudde (Shab)

Administrator
Crazy?

Registered
  31/01/2003
Points
  5125

Has Donated, Thank You!Clickzine StaffKlikCast StarVIP MemberGhostbuster!Dos Rules!I donated an open source project
9th April, 2005 at 15:47:00 -

are you sure that the bullets aren't just being created and staying still

 
Craps, I'm an old man!

Destroyer (CrobaSoft)



Registered
  10/10/2004
Points
  1106
9th April, 2005 at 15:55:30 -

perhaps it's the object limit, it's set to 300 but it can be as high as 10.000 goto the frame editor, right click the frame goto properties -> number object at runtime and type in 10000

Image Edited by the Author.

 
Visit www.crobasoft.com or you're a Noob.

..:.Phox.:..



Registered
  18/02/2005
Points
  646

VIP MemberHero of TimeI like Aliens!Cardboard BoxAttention Getter
9th April, 2005 at 18:41:38 -

all done
Thanx the same way!


 
Profile edited as it messed the layout of the site up.

AndyUK

Mascot Maniac

Registered
  01/08/2002
Points
  14586

Game of the Week WinnerSecond GOTW AwardHas Donated, Thank You!VIP Member
10th April, 2005 at 13:14:24 -

Thats not the best solution though, since the objects will keep going up and up until the game becomes unplayable, way before you hit 10000 objects usually

 
.

axel

Crazy?

Registered
  05/02/2005
Points
  4766

Game of the Week WinnerYou've Been Circy'd!
10th April, 2005 at 13:23:38 -

i don't think i can help u out with this one, shadow . I'd have to see the file. It could be anything.

 
n/a

DistantJ [FZ Games]



Registered
  02/08/2004
Points
  855
17th April, 2005 at 14:07:36 -

Just add "bullet is getting closer than -20 pixels from a window's edge: destroy bullet". That way you don't even need to increase your max object count(the game will eat up much more memory that way and if there are too many objects it can even end up crashing).

 
http://www.fzgames.com
   

Post Reply



 



Advertisement

Worth A Click