I need help with my code. I am trying to figure out how to make an object slide of the screen very smoothly. But when I tried to code it, the object would just push against the screen for a second and then turn invisible. If anyone can help, I would really appreciate it.
Ill get back to you later. Im doing a test in mrs. Ehvertz
Change X / Change Y / Move Forward only work outside the borders of the screen. Once it touches the edge of the iPad it won't move any further.
Instead, use the Set Position block and a repeat loop.
To move by 500 on the X axis
Repeat 50 times:
Set Position x((self.x)+(10)) y(self.y)
Wait (100) ms
Adjust the parameter of the wait block to change the speed of the object moving. This will allow you to move an object off the screen without using Set Invisibility, which may look choppy.
Oh my god, thank you so much! I really needed this