Place an overlapping occluder at the join of every pair of blocks?
Alternatively build a single occluder polygon from every block corner that isn't hidden
Add a property called 'state' to your character. On each process, check what the character is currently doing and set the state to "moving" or "attacking" or "idle". You can also set this state with events, like your attack function. Have an if else block at the end that checks what state the character is in, and plays the appropriate animation.
Place an overlapping occluder at the join of every pair of blocks? Alternatively build a single occluder polygon from every block corner that isn't hidden
The clever men at Oxford know all there is to be knowed, but not one of them knows near half as much as intelligent mister Toad
Good luck with the rest of your project!
Can you show a version of the file that works and a version that doesn't? And what error do you get, at what stage?
Paste your JSON object into this webpage and see if there are any errors in it that you have missed
Add a property called 'state' to your character. On each process, check what the character is currently doing and set the state to "moving" or "attacking" or "idle". You can also set this state with events, like your attack function. Have an if else block at the end that checks what state the character is in, and plays the appropriate animation.
Sounds like an interesting project, but what is the actual question you're trying to ask?
End of this list.
Back to top