So when i move backwards- the bomb moves at the slowest speed. When i move forwards- i shoot slightly faster than ships velocity?
...I know i've been posting alot for help but i started only a couple of weeks ago and i've have been tryin to do things myself but failing
Offline
Something like that? The bomb speed formular should work for what you want, adjust the (1.1) value if you want it to go faster or slower.foreverifkeyup arrow ▼pressed?changevelocity ▼by2ifkeydown arrow ▼pressed?changevelocity ▼by-2setvelocity ▼tovelocity*0.86movevelocitystepssetbomb speed ▼to+*abs ▼ofvelocity1.1velocityifkeyspace bar ▼pressed?broadcastbomb ▼
Offline
Ty i'll try this when i get a moment but one question- once i've fired the bomb and its moving if i press up or down- does that bomb change speed or does it remain traveling at the same speed?
Offline
At the moment, it would change the speed. (You'll also need a way to turn the ship sprite). You should add this to the bomb sprite:
when i receivebomb ▼point in directiondirection ▼ofship ▼go toship ▼setlock speed ▼tobomb speedshowrepeat untiltouchingedge ▼?movelock speedstepshide
Last edited by Prestige (2012-08-03 07:11:51)
Offline