The Daily Click ::. Forums ::. Klik Coding Help ::. Ballistic objects
 

Post Reply  Post Oekaki 
 

Posted By Message

Thunderstorm



Registered
  15/04/2004
Points
  249
18th June, 2004 at 16:00:00 -

So I'd like to know how do i make bullets that fall like catapult ammo or something other like that,bullets who fall when they hav flown few metres etc. Can somebody help me please??? This is a TGF problem

Image Edited by the Author.

 
-=Thunderstorm=-

Assault Andy

Administrator
I make other people create vaporware

Registered
  29/07/2002
Points
  5686

Game of the Week WinnerVIP Member360 OwnerGOTM JUNE - 2009 - WINNER!GOTM FEB - 2010 - WINNER!	I donated an open source project
18th June, 2004 at 19:33:20 -

First you make your normal shooting actions (bouncyball will do for now) make it shoot towards the right. Then add the event:

Always > bullet.y = bullet.y + 1.

And that's it. By doing this we add gravity and then if you are feeling special you can change the bouncy ball movement to your own custom one.

 
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

Noyb



Registered
  31/05/2004
Points
  1117

VIP Member
18th June, 2004 at 22:59:31 -

Helpful physics fact: horizontal movement is independent of vertical movement.

 
"Omg. Where did they get the idea to not use army guys? Are they taking drugs?" --Tim Schafer on originality in videogames

Arf :: FPP Games



Registered
  15/05/2002
Points
  1364
20th June, 2004 at 15:23:40 -

That won't be proper gravity though Andy. You need to add one to a value, and then add that value to the y-coordinate (so it accelerates). Eg:

Every 0.04 seconds -- Add 1 to Alterable value A
Always -- Set Y to Y + Value a

 
n/a

Kris

Possibly Insane

Registered
  17/05/2002
Points
  2017
20th June, 2004 at 15:26:16 -

how is that helpful, noyb?

 
"Say you're hanging from a huge cliff at the top of mt. everest and a guy comes along and says he'll save you, and proceeds to throw religious pamphlets at you while simultaniously giving a sermon." - Dustin G

ChrisB

Crazy?

Registered
  16/08/2002
Points
  5457
20th June, 2004 at 18:37:30 -

Because I've seen lots of people who think subtracting from the direction every third of a second is a good simulation.

 
n/a

Keatonian



Registered
  15/07/2002
Points
  571
20th June, 2004 at 18:40:27 -

Yup.

 
-Above post is ancient and probably irrelevant-

An old account of mine, recently cleared out. It's a blast to the past, the age was marked as 14 when I found it. If you know where to look, you can track me. Au revoir.
   

Post Reply



 



Advertisement

Worth A Click