1 decade ago by Nathre
Hello everyone. Sorry for this newb question but, how do I flip the animation of an entity I spawn like a bullet or a bomb?
I'm trying to make this work but I have no idea how to do it. ;(
I have a toon that shoots bullets (and sets bombs) but how to flip the bullet entity when I shoot left? (the way the toon is)
"{flip:this.flip}"
"this.vel.x = (settings.flip ? -this.maxVel.x : this.maxVel.x);"
I don't know how they work
I hope You guys can help me ;(
I'm trying to make this work but I have no idea how to do it. ;(
I have a toon that shoots bullets (and sets bombs) but how to flip the bullet entity when I shoot left? (the way the toon is)
"{flip:this.flip}"
"this.vel.x = (settings.flip ? -this.maxVel.x : this.maxVel.x);"
I don't know how they work
I hope You guys can help me ;(