Not sure how to code the character to move accordingly to the picture

Screenshot 2020-12-05 at 2.43.54 PM

Hi, is it possible to make my character constantly move in the snake-like manner shown in the attachment when the button is clicked? i got the character to move all from intial point to the right edge but when it moves down, it goes all the way down to the bottom right edge but i need it to only move down a bit and proceed to move to the left edge and continue till it which the bottom

Hi, Im currently stuck here, the character cant move to the left edge now

I want to move my character based on the input coordinates that I enter, is it possible?

I am "guessing" you have an image sprite on a canvas ?

Why not provide more details about what you want to achieve, an image of your relevant blocks of what you have tried so far...?

Try this (as per your "snake" picture) - should give you an idea

Before the if else statement, i want to know the current (x,y) coordinates of the character while its moving but as of now i can only get the coords when i press the start button

You will need to use a clock timer to report the current positions of x,y for your imageSprite.

This test is impossible to satisfy:

This works for me ...

zigzag.aia (2.6 KB)

(The images are slightly old, possibly due to my crippled ISP connection. Look for the zigzag app in the Gallery, in case it made it there alive.)

P.S. the reset test should be 4 radii above the bottom, not 2 radii.