Game Development Community

Shooting Up (solved)

by rennie moffat · in iTorque 2D · 08/12/2011 (9:18 am) · 0 replies

EDIT: Seems to be working now. Maybe I was putting into too severe amounts.

Thanks
*******

.....
Hi there,
I am having an issue with a behavior, in that, I want the user to hold down the shoot btn, the longer one holds the shoot btn the more power is given to the velocity of the projectile. That is fine, I have that working but I also want to apply gravity to the projectile.



%this.projectile.setImpulseForcePolar(%angle, %force, true);
seems to have no results, in terms of gravity.


%this.projectile.setImpulseForcePolar(%angle, %force, false);
	%this.projectile.setConstantForceY(100);
this has unpredictable, weird results like the projectile simply disappears on release.



About the author

My thanks to Garage Games and the Garage Games Community combined with owned determination I got one game up, Temple Racer and I am looking to build more interesting, fun games for the mass market of the iOS app store.