S
Stratos.la
Guest
i am making a small leveling up system and i have made it so far, so i said why not code the enemies every time the player levels up to level up themselves! thought it could be easy but i am having trouble making it happen. i have set a global variable for the level (of the player) and i cant detect it in the enemy create event. Something along the lines of
which of cource doesnt work and i get an error so i tried saving the global variable in another variable in the enemy object but still nothing. any ideas please?
Code:
if global.level += 1
{
//do enemy stuff
}