• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

slopes

  1. Z

    GML Visual Help with Slopes in platformer

    I found this in a tutorial: If X-4 is collision free(Relative) [Jump to X-4(Relative)] else [If Y-2 and X-2 is collision free(Relative) [Jump to Y-2 and X-2 (Relative)] ] But it gets stuck some times and it doesn't work for the down way in the slope, just for the way up
  2. T

    [Solved] Need help with collision, use of position vs speed variables

    Hi there, i trying to prototype with some collision stuff and need some help to unterstand it... The Code works fine if i hit the objects just horizontal or vertical. But if i hit a slope diagonal, then i get stuck sometimes. The same when i hit a corner from a rectangle. Any advice? Thanks :)...
  3. LazyTomato

    Legacy GM Implementing slopes (and one-way slopes) on a smooth platformer

    (sigh... i've really been making a lot of questions here lately) So I've been trying to make a platformer engine with smooth movement and slopes for a future project I'll be making at some point. So far it's worked perfectly fine, blocks and collision work okay, and i got one-way square blocks...
  4. R

    Landing on downward slopes [SOLVED]

    Hey everyone, this is my first post, so I hope it's in the right section. My problem is a bit of an old school one. I've recently tried to add slopes into my Megaman Zero engine. I can dash, walk and land on the slope moving upward and I can also walk down it, but when I jump downward along the...
  5. C

    Player Sprite Tilt/Rotate with Slope

    Im making a 2D Platformer and im trying to make the character sprite dynamically rotate/tilt with slopes, i searched for threads about this. The mayority of them sugested this code: image_angle = direction; The problem is this code wont work because im not using "direction" for my movement...
  6. Z

    Legacy GM Platformer engine(slopes) and how to use Applies to: Other

    I always make towers of Drag'nDrop actions to develop a good slope code.But his to hard and take to much time.How can I make an action who finds a collision free place between an specific amount of pixels? And whats mean "Applies to: other" can I use it to manipulate certain objects when...
  7. A

    Legacy GM On Slopes and Grids II: Autotiling with 45° Slopes.

    GM Version: 1.4.1757 Target Platform: ALL Downloads .gmz: https://drive.google.com/file/d/0B2GpaH0xusQOYkdnU2xBV0hFcms/view?usp=sharing Assets.zip: https://drive.google.com/file/d/0B2GpaH0xusQOM2Vmdkt6bHd0QTQ/view?usp=sharing Summary: This tutorial expands on my previous one by adding slope...
  8. Z

    Legacy GM Platformer slopes and non plain floors and how to use "Applies to: Other"

    I want that when the player walks it finds for collision-free space to move in the floor.How can I make that with only a few actions?Previously I tend to check every location to make that.Like:If x4,y-2 have collision go to x4,y-3 and if x4,y-3 have collision go to x4,y-4. And what makes the...
  9. A

    Legacy GM On Slopes and Grids: subpixel-perfect topdown movement and collision line without objects

    GM Version: 1.4.1575 Target Platform: ALL Download: Project GMZ File: https://drive.google.com/file/d/0B2GpaH0xusQObmoxWjlySHIzcjA/view?usp=sharin Links: Pastebin http://pastebin.com/dxJjsptD Summary: This tutorial will feature a couple of scripts that will enable you to work with 45° slopes...
  10. C

    Slopes in top down game

    I'm working on a game with a top down view (like an rpg). The player can move anywhere on the map. The collisions for simple squares was not a problem. However making it for slopes has turned out to be a challenge. The code I'm currently using is this one: ///scr_player_colisions...
Top