You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
424 B
13 lines
424 B
if (collectable == 1 && state != 6)
|
|
{
|
|
global.playerhealth += 5
|
|
if (global.playerhealth > global.maxhealth)
|
|
global.playerhealth = global.maxhealth
|
|
PlaySoundMono(sndAbsorbX)
|
|
instance_create(oCharacter.x, (oCharacter.y - (oCharacter.sprite_height / 2)), oAbsorbX)
|
|
state = 6
|
|
statetime = 0
|
|
relativeX = (x - oCharacter.x)
|
|
relativeY = (y - (oCharacter.y - (oCharacter.sprite_height / 2)))
|
|
}
|