Hello!
I was a Contsruct 2 user and I wanted to try something different
I am new to AGK2 and currently I am facing a problem and I hope someone can help me
.
I am trying to setup multiple animations for one sprite
and switch between those sprites with mouse click.
So I did:
CreateSprite(Player, 0)
AddSpriteAnimationFrame(Player, LoadImage("looking0.png"))
AddSpriteAnimationFrame(Player, LoadImage("looking1.png"))
AddSpriteAnimationFrame(Player, LoadImage("looking2.png"))
AddSpriteAnimationFrame(Player, LoadImage("looking3.png"))
AddSpriteAnimationFrame(Player, LoadImage("wave0.png"))
AddSpriteAnimationFrame(Player, LoadImage("wave1.png"))
AddSpriteAnimationFrame(Player, LoadImage("wave2.png"))
AddSpriteAnimationFrame(Player, LoadImage("wave3.png"))
//Change Animation (this is before the main game loop)
if GetPointerState() = 1
PlaySprite(Player, 10, 1,1,4)
endif
if GetPointerState() = 0
PlaySprite(Player, 10, 1,5,8)
endif
Thank you for your time!