Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- charge=0
- max_charge=20
- if mouse_check_button(mb_left)
- {
- if charge<max_charge
- charge+=.5
- }
- if mouse_check_button_released(mb_left)
- {
- var iii;
- iii=instance_create(x,y,obj_beam)
- iii.speed=3+charge
- iii.direction=direction
- charge=0
- }
Advertisement
Add Comment
Please, Sign In to add comment