Distance between a pixel and an image

Ask gaming related questions
vinieduvi
Posts: 4
Joined: 18 May 2020, 09:49

Distance between a pixel and an image

Post by vinieduvi » 18 May 2020, 11:30

Hey guys,

I'm making a script for a game. Since I can't keep playing for a long time, I wanted to leave “playing alone” during my work hours. Anyway ..

I'm stuck on that part of the map. The game has a small map and the center of the map (the pixel in the middle of the map) represents the position of my character (for those who have played Tibia, it is very similar). I made markings on the map (the game has this option). What's the idea? When the pixel in the middle of the map reaches 10 pixels away from image1 (c1.png), click on image 2 (c2.png) and so on, until you go around the whole map and return to image 1 again.

Can someone help me? I am very grateful, I am 4 days stopped in that part.

Return to “Gaming”