how to change the hero sprite frame in plotscript?
Posted: Wed Dec 04, 2019 12:55 pm
let's say i load a hero sprite from a slice collection, how would i go about changing its animation frame with plotscript commands?
Slime Salad discussion forums
https://www.slimesalad.com/forum/
Code: Select all
global variable (1,g)
plotscript,examplename,begin
g := load walkabout sprite (313,100) # Load Walkabout nr. 313 with palette nr. 100
put slice (g,240,110) # Put the sprite on position x=240 and y=110
set sprite frame (g,1) # Change the graphics
end