| Simple slopes in  2.5D example 
  
    | 
    	| Author: | Spitznagl | Submitted: | 1st July, 2009 | Favourites: | 1 |  | Genre: | Tutorial | Downloads: | 732 |  
        | Rated: |  |  |  
    | 
 Edited By Spitznagl on 7/1/2009
 
 I decided to upload this example because of this thread.
 http://www.create-games.com/forum_post.asp?id=255283
 
 Anyone his free to use this engine, even if only for the slope part.
 
 Slopes
 Creating a slope engine isn't complex at all. You just need to put the events in the right order. But the difference with this one, compared to others I've seen here, lies in the speed at wich you climb those slopes. Normaly, people just add a vertical movement, but this means climbing about 41% faster then when walking straight. 0_o
 
 So that's why you need to compensate on the horizontal movement. For this, you need to carry on the horizontal and vertical position of your object, calculate the angle of the movement and increase or decrease the number of loops from your "horizontal loop" accordingly.
 
 2.5D part
 This part his only a test, with no collision detection coded yet, but the visual part does works. It seems to be the simplest way to do it.
 
 Version 1.2
 I added rotation to the sprite and the jumps are now affected by the slope angle.
 
 
  Review This Download 
 
 
 
   
 
  http://www.mediafire.com/file/yy2mmzzgywt/Slopes in 2.5D version1.2.rar (391 kkb )
 
 
 
 |  
 
 
 
 
 | 
 Is this worth a look? Let others know!  Favourite
 
 
 
 |