O
Orthodox & Occult
Guest
I'm looking for a way to implement a system in which the player can equip armour and weapons, that not only affect stats but also changes the appearence of the player, but I have no idea how I would code it
I've though of 2 possible solutions but still, I've no idea how to code it in GML
SOLUTION 1
1 create finite state machine
2 check state (check inventory slots?)
3 Apply armour sprite (or) index frame
SOLUTION 2
1 set all armour types to separate frames in the same sprite
2 set player default as index 1 (no armour)
3 when players equips armour run code attached to armour object telling to change player index to (x)
as well as that but how could I apply armour animation to each armour set (run cycle)
I've though of 2 possible solutions but still, I've no idea how to code it in GML
SOLUTION 1
1 create finite state machine
2 check state (check inventory slots?)
3 Apply armour sprite (or) index frame
SOLUTION 2
1 set all armour types to separate frames in the same sprite
2 set player default as index 1 (no armour)
3 when players equips armour run code attached to armour object telling to change player index to (x)
as well as that but how could I apply armour animation to each armour set (run cycle)