I want to make a pistol, which shoots every time the player presses "space". I have it set to move 100 steps in a forever loop, so it gets stuck on the side of the screen, and I can't shoot anymore.
Offline
forever if <key [space v] pressed?>//add this go to x: ([x position v] of [pistol v]) y: ([y position v] of [pistol v]) else move (100) steps
Offline
if <touching [edge] goto x:[gun] y:[gun]Just replace x:gun and y:gun with the actual position of the gun.
Offline
DonutCannon wrote:
if <touching [edge v]?> go to x: [gun] y: [gun]Just replace x: gun and y: gun with the actual position of the gun.
Fixed.
Last edited by 360-International (2012-07-16 19:18:40)
Offline