• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

can someone tell me how to code a Wrecking Ball ?

G

GrAmmErX

Guest
so i need to code a wrecking ball for my game i want it to go from 90° to 270° and back to 90°
(i got it to rotate i just need to limit its rotation somehow)
 

Bingdom

Googledom
Because you didn't set the variable in the create event (offset should be there too). ;)

Make sure to add time in small increments. cos is in radians. (dcos is in degrees)
 
Top