So, if the line is straight horizontally or vertically, you can make the emoji only move as a result of the joystick when it’s y (if your line is horizontal) or x (if your line is vertical) is less than that of the line. I don’t know what kind of joystick code you are using, but inside the code for the emoji, take all the code inside the blocks that make it move of the joystick is moved and put them all inside (Check Once If self y position < text y position). That code is assuming your line is a straight horizontal y, a text object drew the line, and the line is relatively thick. If your line is thinner, you would have to do text y position - 10. The number may have to be greater than 10 depending on the size of the emoji. 10 was a random guess. Basically, here’s what the code would look like:
When (joystick blah blah blah)
-check once if self y position < text y position-10
• move forward 5
It would look like this:
With the second emoji, I’m not as sure of my code on that one, but I would think that either you would have to use some check once if with a whine bunch of and’s. I would have to actually code it for it to make sense or you may want to wait for someone else to tell you an easier method.