Search

Compare Yourself

What version of GameMaker are you using?

Loading ... Loading ...

How to jump through blocks

In this GameMaker video tutorial you will learn how to make a player jump through blocks. This tutorial uses GameMaker 7.0 (Lite). This tutorial uses a little GML code. But it is easy to follow and copy.

(credit Stevmay09)


8 comments to How to jump through blocks

  • kara

    These realy works!!!! And it was so simple that i could convert it in D&D! Any chance of making a vertical platform tutorial (as easy to understand as this one)?
    Thank you!

  • vlad

    I got this error, what should I do?
    ___________________________________________
    FATAL ERROR in
    action number 1
    of Step Event
    for object obj_jumpthru1:

    COMPILATION ERROR in code action
    Error in code at line 1:
    if obj_player.y > y+16 {instance_change(obj_jumpthru2)}
    ^
    at position 54: Wrong number of arguments to function or script.

  • re

    VLAD
    if obj_player.y > y+16 {instance_change(obj_jumpthru2,true)}

  • the Dude guy7

    Yeah, what’s the event for obj_solid?

  • Josh

    My obj_player gets stuck half way through the platform/jump through block. How do I fix this?

  • eric

    josh i had to change y+16 to -17 on both objects. Your number may have to be diffrent. just play with it to figure out what works.

  • Jay

    ERROR in
    action number 1
    of Step Event
    for object Platform_Through2:

    Error in code at line 1:
    if Character.y < y-4 {instance_change (Platform_Through1,true)}
    ^
    at position 14: Unknown variable y

Leave a Reply

 

 

 

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>