Hey Chris,
My game is a 2D side-scrolling experience where the player can only move left or right, with no mouse support. Is it possible to make the character face the hotspot when interacting with it? Ideally, I’d like to use a specific sprite for interactions, similar to this one https://prnt.sc/LxjRafHpiPhO
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
You can use Character: Animate to change the character's animation when interacting with a hotspot.
I used Character: Animate to change the character's animation and it worked. However, this approach requires setting it up for every hotspot individually. Is there a simpler solution?
In the Hotspot Interaction's properties, you can set the Player action field to Turn To Face to have the Player face the Hotspt.
Alternatively, use the Events Editor, available in the top toolbar, to create a "Hotspot: Interact" event.
This will run each time a Hotspot is interacted with - you can use it to run a Character: Face direction Action.
In the Hotspot Interaction's properties, you can set the Player action field to Turn To Face to have the Player face the Hotspt.
Thank you for the advice! Here’s what I did:
It seems to work when I set the hotspot to "Face front," but I'm encountering two issues:
Any suggestions on how to fix these?
The Player's starting direction is based on the PlayerStart that they are positioned at. When starting the game from a given scene, this will be the "Default PlayerStart" assigned in the Scene Manager.
What animation exactly is being played in the Animator Controller? If they were set to face upward, they'll continue to do so until told to face left/right - which can be done with a Character: Face direction Action at the end of your Interaction.
Thank you, Chris. I can confirm that the issues is resolved.