1 decade ago by abritinthebay
So I'm playing with the pong example... and the default puck speed is SUPER slow, so I wanted to increase it.
Sounds simple right? Well I edited the velocity numbers but no matter what I set them to the puck goes really slowly. I can make it slower, but faster seems not to happen.
That's double, but even setting to -8000 and 4000 achieved nothing.
I am clearly missing something obvious... help?
Sounds simple right? Well I edited the velocity numbers but no matter what I set them to the puck goes really slowly. I can make it slower, but faster seems not to happen.
init: function( x, y, settings ) { this.parent( x, y, settings ); this.addAnim( 'idle', 0.1, [0,1,2,3,4,4,4,4,3,2,1] ); this.vel.x = -400; this.vel.y = 200; }
That's double, but even setting to -8000 and 4000 achieved nothing.
I am clearly missing something obvious... help?