Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // move toward ground
- y += 4;
- // contact player
- if (place_meeting(x, y, obj_Player))
- {
- if (obj_Player.passive_state = PLAYERPASSIVE_STATE.BURNING_STATE)
- {
- obj_Player.burning_duration = obj_Player.burning_duration_max - 100;
- }
- else
- {
- obj_Player.oiled_duration = obj_Player.oiled_duration_max - 50;
- obj_Player.passive_state = PLAYERPASSIVE_STATE.OILED_STATE;
- }
- instance_destroy();
- }
- // contact surface
- var oiled_surface_attempt = instance_place(x, y + 1, obj_Floor)
- if (oiled_surface_attempt)
- {
- if (oiled_surface_attempt.state = SURFACESTATE.FREE_STATE) || (oiled_surface_attempt.state = SURFACESTATE.WET_STATE)
- || (oiled_surface_attempt.state = SURFACESTATE.FROZEN_STATE) || (oiled_surface_attempt.state = SURFACESTATE.ELECTRIFIED_STATE)
- {
- oiled_surface_attempt.count = 1;
- oiled_surface_attempt.state = SURFACESTATE.OILED_STATE; // oil turns free/wet/frozen/electrified surfaces to oil
- }
- instance_destroy(); // destroy self either way
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement