Fangames > Programming Questions
Flashlight effect.
Ario147:
I need someone to explain me how to make flashlight effect in game maker. I have the sprite for it, just don't know how to make it hide level, and light follow the kid, don't know how.
Sephalos:
To make a object follow to kid is pretty simple.
Make a object with the flashlight sprite and add this code in the "End Step Event"
x = player.x;
y = player.y;
Just make sure the origin of the sprite is set correctly.
Ario147:
Could you make screen shots? I made it and nothing happend.
Holyanus:
It sounds simple, are you sure you did it right?
Ario147:
I did, and after that i tried to change code, or to place the FlashLight object in the room, nothing D:
Navigation
[0] Message Index
[#] Next page
Go to full version