The Daily Click ::. Forums ::. Klik Coding Help ::. Fast loop or fast function for platform engines?
 

Post Reply  Post Oekaki 
 

Posted By Message

Leighton Williams



Registered
  24/04/2005
Points
  173
4th May, 2006 at 16:50:02 -

Which one is best or am I just useless at this stuff, Everytime I make a jump movement in this engine I'm "TRYING" to make is jumpy and it's annoying.

I want smother jumping with very little programming but if I have to I'll do pages of events if I have to.

 
If you fail, try try again... You'll get it in the end

AndyUK

Mascot Maniac

Registered
  01/08/2002
Points
  14586

Game of the Week WinnerSecond GOTW AwardHas Donated, Thank You!VIP Member
4th May, 2006 at 23:57:33 -

I don't think fastloop or fast function will decrease the amount of events much. Maybe you need a better designed jump?

 
.

Radix

hot for teacher

Registered
  01/10/2003
Points
  3139

Has Donated, Thank You!VIP MemberGOTW WINNER CUP 1!GOTW WINNER CUP 2!GOTW WINNER CUP 3!GOTW WINNER CUP 4!
5th May, 2006 at 01:56:16 -

You can do a simple smooth jump with fastloop in about four events.

 
n/a

DaVince

This fool just HAD to have a custom rating

Registered
  04/09/2004
Points
  7998

Game of the Week WinnerClickzine StaffHas Donated, Thank You!Cardboard BoxDos Rules!
5th May, 2006 at 15:37:27 -

Simple & nice jump events:

- When jump action is triggered: set alterable value of object to jump to -20.
- Always: add 1 to alterable value and set y position to y + (alterable value / 5 or another strength)
- Collision with object + alterable value > 0: set alterable value to 0 and set y position to y + 1 (so the object gets pushed up back to the floor again, seeing as there are lost pixels).

You could add a maximum for the alterable value to implement terminal velocity (or whatever ).

Note this doesn't use fastloops.

 
Old member (~2004-2007).
   

Post Reply



 



Advertisement

Worth A Click