Treadmill/Conveyor Belt??
Bredhouse
Member Posts: 11
hello
just a quick question, does anyone know how to create the physics for a treadmill or conveyor belt. I just cant seem to figure it out. Any help would be appreciated.
thanks
just a quick question, does anyone know how to create the physics for a treadmill or conveyor belt. I just cant seem to figure it out. Any help would be appreciated.
thanks
Comments
rule:
condition: when your actor overlaps or collides with your conveyor belt
behavior: move actor in whatever direction and speed you want
that should do it.
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page
You can have an attribute that multiple actors look at.
So for instance you could make an attribute called "SPEED"
Then assign that speed attribute to the conveyor belt.
Now on your actor atop the conveyor belt, assign their speed to the attribute of Speed.
At this point both the conveyor belt and the actor atop it are referencing the same speed value.
What's great about this is now you can alter the speed at any time and both conveyor belt and object atop it, will move accordingly.
So if you had a button for instance that could increase or decrease the speed of the conveyor belt- all of the objects would update their speed accordingly.