Tuesday, June 8, 2021

【GAMEMAKER】Two Shot

Information about object: ObjPlane

Sprite: sprPlane
Solid: false
Visible: true
Depth: 0
Persistent: false
Parent:
Children:
Mask:
No Physics Object
Create Event:
set variable ShotTimer to 0
Alarm Event for alarm 0:
create instance of object objBullet at relative position (0,20)
Step Event:
set variable ShotTimer relative to -1

Keyboard Event for <Space> Key:
if expression ShotTimer<0 is true
      create instance of object objBullet at relative position (35,20)
      set variable ShotTimer to 25
      set Alarm 0 to room_speed/2

Information about object: objBullet
Sprite: sprBullet
Solid: false
Visible: true
Depth: 0
Persistent: false
Parent:
Children:
Mask:
No Physics Object
Create Event:
start moving in directions 000000010 with speed set to 8
Other Event: Outside Room:
destroy the instance

No comments:

Post a Comment

End of Summer Sale ☀️😎

20% OFF Inside!🤯 ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏...