The Daily Click ::. Forums ::. Klik Coding Help ::. Bow and arrow Adding Gravity
 

Post Reply  Post Oekaki 
 

Posted By Message

Ecstazy



Registered
  04/01/2002
Points
  179

VIP Member
18th November, 2008 at 09:32:49 -


Originally Posted by Coated and Roasted Pixelthief
when you shoot the arrow, give it both X & Y velocities as variables. Use an "Always: Position = Position + Velocity" event for both X & Y. Then, always add 1 or whatever to the Y velocity, which simulates gravity downwards.



Wouldn't that cause instead of having the arrow go up and then down, start its descent the moment it's shot from the bow?

 
Amongst Strangers
http://www.create-games.com/project.asp?id=1445

Pixelthief

Dedicated klik scientist

Registered
  02/01/2002
Points
  3419

Game of the Week WinnerWeekly Picture Me This Winner!You've Been Circy'd!VIP MemberI like Aliens!Evil klikerThe SpinsterI donated an open source project
18th November, 2008 at 15:54:17 -


Originally Posted by Ecstazy

Originally Posted by Coated and Roasted Pixelthief
when you shoot the arrow, give it both X & Y velocities as variables. Use an "Always: Position = Position + Velocity" event for both X & Y. Then, always add 1 or whatever to the Y velocity, which simulates gravity downwards.



Wouldn't that cause instead of having the arrow go up and then down, start its descent the moment it's shot from the bow?



you need to give it non-zero velocities when you create it.

 
Gridquest V2.00 is out!!
http://www.create-games.com/download.asp?id=7456

Windybeard Games



Registered
  14/04/2005
Points
  219

You've Been Circy'd!VIP MemberCandy Cane
18th November, 2008 at 22:17:54 -

i thought you could sell apps made in MMF2 Standered aslong as you had some sort of decent Clickteam spash screen?

I could be wrong

 
n/a

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
18th November, 2008 at 22:28:42 -


Originally Posted by Antworx
i thought you could sell apps made in MMF2 Standered aslong as you had some sort of decent Clickteam spash screen?

I could be wrong



I do think that's the case. The Dev license lets you forgo that logo all together.

 
Craps, I'm an old man!
   

Post Reply



 



Advertisement

Worth A Click