Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //weather powers - This will control the execution of skills
- switch (skill)
- {
- case skills.none:
- break;
- case skills.rain:
- //rainpower
- if (key_attack1) and hsp == 0 and onground
- {
- if !instance_exists(o_cloud)
- {
- if !image_index = 0 {image_index = 0}
- state = states.rainprayer
- }
- }; break;
- case skills.wind:
- //wind power
- if (key_attack1) and hsp == 0 and onground
- {
- if !image_index = 0 {image_index = 0}
- state = states.windprayer
- }; break;
- case skills.shock:
- //shock power
- if (key_attack3) and hsp == 0 and onground
- {
- if !image_index = 0 {image_index = 0}
- state = states.shockattack
- }; break;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement