Impact

This forum is read only and just serves as an archive. If you have any questions, please post them on github.com/phoboslab/impact

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 ;(

1 decade ago by Hareesun

Check out the Jump’n’Run demo on your download page. The player entity flips horizontal and projectiles fire in the direction of the flip too. :)

1 decade ago by fugufish

@Nathe hmm looks like you need some javascript knowledge. it's always hard to start without the basics, but totally possible.

ask more specific questions. Take the time to write a good, clear question and post it here! We're always monitoring the forums to help.

eventually you'll be able to answer your own questions without even knowing it. That is when you can call yourself a javascript NINJA!

1 decade ago by Nathre

Quote from Hareesun
Check out the Jump’n’Run demo on your download page. The player entity flips horizontal and projectiles fire in the direction of the flip too. :)
Ty!
Page 1 of 1
« first « previous next › last »