The Daily Click ::. Forums ::. Klik Coding Help ::. Slopes in MMF
 

Post Reply  Post Oekaki 
 

Posted By Message

Lukas Hägg



Registered
  02/01/2004
Points
  642
10th November, 2005 at 18:55:48 -

Ok, I'm working on a small game witha CPM. And when I'll have the character (for now just a big green box) walk down a slope it gets all jumpy (not huge jumps, just small hops that is). It works playwise but it doesn't look very good. At least it's better than my last engine (instead of hopping when going downwards the char got stuck when walking upwards)

Anyone know what needs to be done?

I'll post the code if necessary.

I would have tried to use the search function if it was available.

 
Mendokuse...

AndyUK

Mascot Maniac

Registered
  01/08/2002
Points
  14586

Game of the Week WinnerSecond GOTW AwardHas Donated, Thank You!VIP Member
10th November, 2005 at 21:09:03 -

make the character (green box) move down if it is in the air and up if overlapping the ground, but only by 1 pixel either way or your character will bounce up and down.

simply copy the events so make it happen faster.
or learn how to use the fastloop properly.

 
.

Lukas Hägg



Registered
  02/01/2004
Points
  642
10th November, 2005 at 21:58:40 -

Thanks I'll try that. I've used fastloop for the mostpart of my engine. What would we do without fastloop?

 
Mendokuse...

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
11th November, 2005 at 01:22:49 -

The idea of CPM is you don't need custom movement, simply change the "Downhill slope correction" to fix your problem.

 
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

David Newton (DavidN)

Invisible

Registered
  27/10/2002
Points
  8322

Honored Admin Alumnus
11th November, 2005 at 04:44:55 -

That's PMO.

 
http://www.davidn.co.nr - Games, music, living in America
   

Post Reply



 



Advertisement

Worth A Click