1 decade ago by carlos_moreira
Hello all,
I have created a switch entity, that the player can turn on and off.
I wanted to know how Could I connect that 'Switch' to another object such as a moving platform.
On my moving platform, I have tried using getEntitybyName(theSwith);
and asking if the switch is in the on position , then the moving platform should move.
Yet my game crashes when using that method.
Is there something I may be missing on how to connect entities? I'm using the "Mover" Entity to move a platform up and down. I just want it only to move if the switch is "on."
Any help would be appreciated.
Thank you
I have created a switch entity, that the player can turn on and off.
I wanted to know how Could I connect that 'Switch' to another object such as a moving platform.
On my moving platform, I have tried using getEntitybyName(theSwith);
and asking if the switch is in the on position , then the moving platform should move.
Yet my game crashes when using that method.
Is there something I may be missing on how to connect entities? I'm using the "Mover" Entity to move a platform up and down. I just want it only to move if the switch is "on."
Any help would be appreciated.
Thank you