Game Maker Studio: How to Create a Animated Torch with Light Follow?
Visit my Game Jolt site: https://bit.ly/3i6iSdF
Paypal Donate: https://bit.ly/30e8VDZ
GMS File:
Orange and Blue Flame: https://bit.ly/2YOdgwY
Orange Flame: https://bit.ly/3b9v2j8
Without Surface Light: Should work with Windows and Android
Orange Flame: https://bit.ly/3h1Gs9O
Orange and Blue Flame: https://bit.ly/2QTD0DR
Code File: https://bit.ly/3bcszEH
Note: The object Control is not needed. I deleted Control object and the flame still animated. The code thats in the Control object, is also placed in the obj_torch_bottom, thats why the torch is in the room.
obj_torch_bottom
Events:
Create
Actions:
if room != room0 ////be sure to change your room to room0, so you can get rid of the second room without an error. Second room not needed.
{
}
{
flame = instance_create(x,y,Flame) //Create the flame
flame.direction = image_angle+90 //set it's direction up.
}
Events:
Alarm 0 and Alarm 1
Actions
if room != room0 ////be sure to change your room to room0, so you can get rid of the second room without an error. Second room not needed.
{
}
{
flame = instance_create(x,y,Flame) //Create the flame
flame.direction = image_angle+90 //set it's direction up.
}