The Daily Click ::. Forums ::. Klik Coding Help ::. Yet another question - This time on walking
 

Post Reply  Post Oekaki 
 

Posted By Message

Ghostdreamer



Registered
  31/03/2011
Points
  12
8th April, 2011 at 17:24:09 -

I am using the custom platform engine created by -MaCAdaM- . (link: http://create-games.com/download.asp?id=7260 ) . I've tweaked it very moderatly to change the jump key to spacebar and of course change the character.

My problem is that when the character goes up a slope, the animation for some reason reverts to left, even if he is going right, and then i end up with this weird back and forth thing where the character faces left and then right quickly over and over going up/down the slopes.

Link to project: http://create-games.com/project.asp?view=main&id=2123



 
n/a

GamesterXIII



Registered
  04/12/2008
Points
  1110

I am an April Fool
8th April, 2011 at 18:22:21 -

As far as I can tell, MaCAdaM's engine is not made for slopes, so that could be a contributing factor. Most klik engines do not support slopes because most people can't make one without bugs and others just prefer to avoid the hassle.

If you don't understand how to create slopes, I would recommend working on your game without them for the time being, and gradually transitioning into learning how to create proper slopes as you learn more. That way you won't become overwhelmed or demotivated by attempting things that could potentially cause you a lot of trouble right from the start.



Edited by GamesterXIII

 
n/a

GamesterXIII



Registered
  04/12/2008
Points
  1110

I am an April Fool
8th April, 2011 at 18:33:20 -

Found the problem. When you're going up slopes the wall clinging event triggers randomly (when the sensor overlaps an obstacle,) which causes the cat to change directions.

Under the wall sliding group remove the events that say Set Direction of Cat to Left and Set Direction of Cat to Right.





Edited by GamesterXIII

 
n/a

Ghostdreamer



Registered
  31/03/2011
Points
  12
8th April, 2011 at 20:54:32 -

perfect! tyvm

 
n/a
   

Post Reply



 



Advertisement

Worth A Click