Myvideo

Guest

Login

Top Down Moving Platform 4 way in Gamemaker Studio 2.3

Uploaded By: Myvideo
23 views
0
0 votes
0

Might not be the best way to implement a top down moving platform in Gamemaker Studio 2.3 but it works. I'm just a beginner so if there's a better way by all means leave it in the comments. I looked everywhere and couldn't find a tutorial on how to do this, so here's one. I set the platform object on a path in its creation code then set variables vspd and hspd in its step event (so it is always updating direction) and a few lines of code in the end step event. You will have to adjust your players hurt code if you want to go over lava or a hole. //creation code of your object platform, the path the platform follows path_start(Path18, 3, path_action_continue, 1 ); //step event , I put in step so it always updates the direction*/ hspd = lengthdir_x (1.5, direction); vspd = lengthdir_y (1.5, direction); //End Step if place_meeting(x, y, oPlayer) { oPlayer.x = hspd * 2 } if place_meeting(x, y, oPlayer) { oPlayer.y = vspd * 2 } //Hope this helps anyone looking to do something like this.

Share with your friends

Link:

Embed:

Video Size:

Custom size:

x

Add to Playlist:

Favorites
My Playlist
Watch Later