The Daily Click ::. Forums ::. Klik Coding Help ::. trying to get my gun to shoot p
 

Post Reply  Post Oekaki 
 

Posted By Message

johnpow66



Registered
  21/12/2009
Points
  399
19th October, 2010 at 19:46:50 -

HEY folks im working on a new game, its about shooting chickens with a gun...but my gun has a problem..it wont shoot bullets so i cant call it a gun yet.. anyway its a simple problem which i cant seem to do. iam tryin to make the bullets shoot as the same position and direction that the gun is facing, im using 360 degree movement for my gun and thats the main reason why iam having trouble with it. any help would be very helpful for me.

http://www.filefront.com/17409236/chix-blaster.rar/ <<<heres the .mfa file

 
Behold my emoticon army and there really white teeth glory!

Marko

I like you You like you

Registered
  08/05/2008
Points
  2804

Has Donated, Thank You!Game of the Week WinnerVIP Member360 OwnerDos Rules!Happy FellahCrazy EvilI am an April FoolGingerbread House
19th October, 2010 at 19:56:53 -

Hey there - just took a look, just make sure you select the "Action Point" in the Animation editor of the gun barrel and ensure it is positioned at the point of which the bullet emerges (i.e. at the end of the gun barrel)

At the moment it is somewhere behind and below the base of the gun barrel, when looking at it when it's facing right

 
Image

Subliminal Dreams. . ., daily gaming news and the home of Mooneyman Studios!
www.mooneyman-studios.webs.com

Spitznagl

Cabinetmaker

Registered
  06/12/2008
Points
  4260

The SpinsterVIP MemberHas Donated, Thank You!Picture Me This Round 29 Winner!Picture Me This Round 31 Winner!Picture Me This Round 36 Winner!
19th October, 2010 at 20:12:19 -

Here: http://dl.dropbox.com/u/4676540/chicken%20blaster%20xtremeefcecvevc2.mfa
Just replace the "10" on line 3 to change the bullet speed.

 
...

johnpow66



Registered
  21/12/2009
Points
  399
19th October, 2010 at 20:51:27 -

hey guys thanks for the quick reply!

@marko- hey thanks for the hint that helped me alot i never even knew what those action points was all about till now

@spitznagl-yo nice one what you done there pretty cool i just had a looksie at it, ill take a deeper look at it later on. gotta get some sleep now but thanks for the help

any 1 else with any other tips or help would be very much appreciated

 
Behold my emoticon army and there really white teeth glory!

Marko

I like you You like you

Registered
  08/05/2008
Points
  2804

Has Donated, Thank You!Game of the Week WinnerVIP Member360 OwnerDos Rules!Happy FellahCrazy EvilI am an April FoolGingerbread House
19th October, 2010 at 21:01:47 -

Here's another quick tip - go for the 360 degree movement for what you're trying to achieve.

If you do want to keep to just 32 directions - coz sometimes it's better to - then you can smooth the graphics out when rotating and remove all the messy "jagged" lines you get by adding the following bit of code in the Event Editor:

Always
- Set angle(object) = DirAnimation*11.25 (because 360 degrees / 32 directions = 11.25)

The graphics will look much smoother

 
Image

Subliminal Dreams. . ., daily gaming news and the home of Mooneyman Studios!
www.mooneyman-studios.webs.com

johnpow66



Registered
  21/12/2009
Points
  399
19th October, 2010 at 21:15:14 -

other great tip ty man if u think of any more let me know more tips the better.

 
Behold my emoticon army and there really white teeth glory!
   

Post Reply



 



Advertisement

Worth A Click