YoYo Games Wiki

Conveyor belts

From YoYoGames Wiki

This article (or section) may need to be wikified to meet The YoYo Games Wiki quality standards.
Please help improve this article, especially its categories, and wiki-links.
//going left
if place_meeting(x,y+26,/*The object that makes the player slide when he touches it*/)
x-=speed of conveyor 

The code above Makes the player go left. Put it in object's step event for whatever object you want to move on the conveyor belt. How it works: the y+26 in the place_meeting should be set to the y of your sprite +2, that's how I did it. PM me for help. -Flankattack

//going right
if place_meeting(x,y+26,/*The object that makes the player slide when he touches it*/)
x+=speed of conveyor

The code above Makes the player go right. Put it in object's step event for whatever object you want to move on the conveyor belt. How it works: the y+26 in the place_meeting should be set to the y of your sprite +2, that's how I did it. PM me for help. -Flankattack