I am trying to create a platform that lowers from sprite.y = 100 to sprite.y =300, once it hits sprite.y= 300, it reverses direction and then returns back to sprite = 100
Best method. Trying to do in-game lab with code blocks given to students.
(Game Lab - Code.org)
What I expect to happen: [replace with a detailed description of the behavior you’re trying to create]
Coding an platform that floats down from sprite.y = 100 to sprite.y = 300, then reversus
]
What I’ve tried: Tried the For Loops, While Loops. I can get float one way or the other. Or have it travel to the bottom and then repeat. I have tried making a float-down function and then a float-up function but am having trouble getting it to complete the float down then reverse.