The Daily Click ::. Forums ::. Klik Coding Help ::. timer based platform
 

Post Reply  Post Oekaki 
 

Posted By Message

Peblo

Custom ratings must be 50 characters or less

Registered
  05/07/2002
Points
  185

Game of the Week WinnerVIP MemberI'm on a Boat360 OwnerAttention GetterThe Cake is a LieCardboard BoxHero of TimePS3 OwnerIt's-a me, Mario!
I'm a Storm TrooperSonic SpeedStrawberryI like Aliens!Wii OwnerMushroomGhostbuster!
20th April, 2005 at 20:52:39 -

Hey, is there any open source timer based platform engines out there? I need a simple one to look at... I'm running some expirements. Amazingly enough, I've never known how to make a timer based engine, I have always used other things, like fastloops. So yeah, anyone with an engine?

 
"Isn't it always amazing how we characterize a person's intelligence by how closely their thinking matches ours?"
~Belgarath

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
21st April, 2005 at 02:47:07 -

there's a reason you don't make timer based engines, cause on slower computers, it won't work right. I believe Gunner 3 had this problem, as on my laptop the first jump in the first level is impossible for me to get on.

 
Craps, I'm an old man!

AndyUK

Mascot Maniac

Registered
  01/08/2002
Points
  14586

Game of the Week WinnerSecond GOTW AwardHas Donated, Thank You!VIP Member
21st April, 2005 at 15:00:44 -

Timer based jumps cause differing heights.

I dont have any because i dont use timers for my engines.

 
.

Bo Fu



Registered
  02/04/2004
Points
  413

VIP Member
21st April, 2005 at 16:10:11 -

Stick with fastloops. Timers are one of the things that don't work quite so well in MMF.

 
If wishes were fishes then we'd all smell like ladies' underwear.

Peblo

Custom ratings must be 50 characters or less

Registered
  05/07/2002
Points
  185

Game of the Week WinnerVIP MemberI'm on a Boat360 OwnerAttention GetterThe Cake is a LieCardboard BoxHero of TimePS3 OwnerIt's-a me, Mario!
I'm a Storm TrooperSonic SpeedStrawberryI like Aliens!Wii OwnerMushroomGhostbuster!
21st April, 2005 at 18:34:50 -

"...I'm running some expirements..."
I know they suck, I just need an open source one. Random thoughts just keep popping up on how to make things... efficient... ummm, yeah.

 
"Isn't it always amazing how we characterize a person's intelligence by how closely their thinking matches ours?"
~Belgarath

clwe



Registered
  17/12/2002
Points
  702
22nd April, 2005 at 07:55:00 -

If you're curious, all you need to create a 'timer-based engine' is to have timer events that control accel/decel and gravity. For example:

Every 00:05
+ Player is in the air
Add 1 to 'Y movement' counter

Every 00:08
+ Right key is pressed
Add 1 to 'X movement' counter

(etc)

That's all there is to it. The only problem is (as other people have pointed out) that the timing remains the same when slowdown occurs, so your character's movement goes all funny. Therefore, it's only good as an example of what not to do =P (i.e. curiosity purposes)

 
n/a

Peblo

Custom ratings must be 50 characters or less

Registered
  05/07/2002
Points
  185

Game of the Week WinnerVIP MemberI'm on a Boat360 OwnerAttention GetterThe Cake is a LieCardboard BoxHero of TimePS3 OwnerIt's-a me, Mario!
I'm a Storm TrooperSonic SpeedStrawberryI like Aliens!Wii OwnerMushroomGhostbuster!
22nd April, 2005 at 11:49:59 -

Or KNP purposes, modified of course.

 
"Isn't it always amazing how we characterize a person's intelligence by how closely their thinking matches ours?"
~Belgarath
   

Post Reply



 



Advertisement

Worth A Click