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 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.

	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?

1 decade ago by Jerczu

your maxVel has to be also set so if you set maxVel:{x:8,y:8} then it will be limited to 8 no matter what vel you'll set.

1 decade ago by abritinthebay

oh god, I knew it was something stupidly simple. Thank you!
Page 1 of 1
« first « previous next › last »