I know the title is confusing, so allow me to explain in detail.
I have this system where the player can crawl or walk by pushing a button. I'm using Galv's Character Animations to achieve this effect. After pushing the key, the player goes into a "kneel" position and moving allows them to crawl.
Basically, I'd like the player to be able to toggle between kneeling or standing at the push of a button/key.
My initial thought was to make a conditional branch that checks the Actor's Image. Something like below:
◆If:Script:$gameActors.actor(0)._characterName === Aelina(main).png
◆Set Movement Route:Player (Wait)
:Set Movement Route:◇Speed:2
:Set Movement Route:◇Image:Aelina (crawl)(0)
◆Wait:10 frames
◆
:Else
◆Set Movement Route:Player (Wait)
:Set Movement Route:◇Speed:4
:Set Movement Route:◇Image:Aelina(main)(0)
◆Wait:10 frames
◆
:End
I've tried to go through the .js files for a hint on how to check the actor's image/spritesheet. And obviously, I've failed.
Is there a "script-call" I can use or a better way to do this?
Thanks!
I have this system where the player can crawl or walk by pushing a button. I'm using Galv's Character Animations to achieve this effect. After pushing the key, the player goes into a "kneel" position and moving allows them to crawl.
Basically, I'd like the player to be able to toggle between kneeling or standing at the push of a button/key.
My initial thought was to make a conditional branch that checks the Actor's Image. Something like below:
◆If:Script:$gameActors.actor(0)._characterName === Aelina(main).png
◆Set Movement Route:Player (Wait)
:Set Movement Route:◇Speed:2
:Set Movement Route:◇Image:Aelina (crawl)(0)
◆Wait:10 frames
◆
:Else
◆Set Movement Route:Player (Wait)
:Set Movement Route:◇Speed:4
:Set Movement Route:◇Image:Aelina(main)(0)
◆Wait:10 frames
◆
:End
I've tried to go through the .js files for a hint on how to check the actor's image/spritesheet. And obviously, I've failed.
Is there a "script-call" I can use or a better way to do this?
Thanks!
