Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- this is in the create event
- wave=0;
- deploy=false;
- token=0;
- spawn=false;
- alarm[0]
- spawn =true
- this is in the step event so its checked every step[
- if (true){
- if (spawn and token>0){
- alarm[0]=15;
- instance_create(view_wview,view_hview,obj_zombie_duck)
- spawn=false;
- token-=token;
- }
- }
- this is in the global left mouse button so whenever the left button is clicked this is run
- if !instance_exists(obj_zombie_duck) then with (obj_wave_controller) {
- wave+= wave;
- token = floor(3.5*wave);
- deploy=true;
- spawn=true;}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement