The solution was to create a transform that takes a start point and center point, then rotates around the center point indefinitely using repeat:
Code: Select all
transform circle(x, y, x0, y0):
xpos x
ypos y
around(x0, y0)
linear 3.0 xpos x clockwise circles 1#(x - r) clockwise
repeat
(Sub a small image for ICON_Book.png and it should be good to go, I commented out the world map image for ease of use)
Code: Select all
screen world_map:
default zoom_vars = (1, 0, 0) #(zoom, x, y)
default sparkle = (-650, 150, 150)
frame:
xfill True
yfill True
#add "assets/world_map.jpg" xpos zoom_vars[1] ypos zoom_vars[2] zoom zoom_vars[0]
button:
background "#0000FF"
hover_background "#FF0000"
xpos 620 ypos 200
text "Castle" color "#FFFFFF"
action SetScreenVariable("zoom_vars", (2, -1024, 0))
hovered SetScreenVariable("sparkle", (650, 150, 150))
unhovered SetScreenVariable("sparkle", (-650, 150, 150))
add "assets/buttons/ICON_Book.png" at circle(sparkle[0] - sparkle[2],
sparkle[1], sparkle[0],
sparkle[1])
add "assets/buttons/ICON_Book.png" at circle(sparkle[0] + sparkle[2],
sparkle[1], sparkle[0],
sparkle[1])
add "assets/buttons/ICON_Book.png" at circle(sparkle[0],
sparkle[1] - sparkle[2],
sparkle[0], sparkle[1])
add "assets/buttons/ICON_Book.png" at circle(sparkle[0],
sparkle[1] + sparkle[2],
sparkle[0], sparkle[1])
Thanks in advance to all who contribute!