How to fire a bullet in a curve

ramfrdramfrd Member Posts: 13

I want to write code to fire a bullet in a curve path... I am not sure of logic how to do it in gamesalad even though I get I gotta use parabolic concept... I want to fire the bullet in shape of "C".. any help is appreciated.

Best Answer

  • deadbeatdeadbeat Posts: 14
    Accepted Answer

    Easy

    Get a move behaviour and set the speed to 200 (it can be anything you want)

    Then get a change attribute behaviour and change self.motion.angularvelocity to 50 (change this number to increase the angle of incidence on the curve.)

    Bear in mind that this will negate the fixed rotation attribute.

    Play with the numbers till you get it just right, cheers

    deadbeat

Sign In or Register to comment.