In AC Game Editor tab, go to MENU section and find the Pause Menu. Click it and scroll down to its linked Action List. Open that up and there you can change what happens when Pause State is activated. e.g. add a new Menu Action where you can control…
Following on from that, if I Duplicate any of the sprites in the scene (including the working one), the copy will have the axis limit (and conversely rotation) changed. If I then Duplicate that copy, the axis limit changes back to its original.. and…
Done that. Unfortunately did not fix the issue. Same behaviour as last time.
If it helps, I don't actually need these sprites to be npcs, I just need the rotate to player functionality with the limitations I mentioned.
Tested on 4 prefab instances of the same Sprite/NPC, each facing 1 of 4 directions, 0, 90, 180, 270. The script's variables were setup to work with one, which I then applied (override) to the prefab. Checking that all the instances then reverted to …
Thanks Chris. I'm using both scripts on the sprite and they are doing the job.
An unforseen issue is that if I rotate the gameobject the sprite is a child of, then run the game, the sprite no longer rotates as expected and I assume I'd have to chan…
Further investigation: With these settings the Game cursor Does lock to the screen centre but only after I click in the game window. Is this working as intended?
Hey Ken, congrats on the new game, I will be jumping into it in Janurary for sure. I'm hoping there is an option for smooth turning as well as click, for us experienced VR players who never get motion sickness. Helps with the immersion.
Also welcom…
In continuation I have again updated AC and Unity to latest versions. Software cursor does behave as you described. Changing to hardware does hide the system cursor, but does not lock the game cursor in the centre. The game cursor turn the player, b…
Ok that almost gets what I need. However I wish the sprite to rotate to face the player only on its Y axis, but currently it is rotating on the Z and X axis also. I have already ticked the Freeze Rotation for Z and X on its Rigidbody, but that doesn…
Thanks for that Chris. I will play with it. Thinking of my needs for this in a different way, there may be a simplier solution.
Is it possible to get the NPC to rotate only to face the players position and not to rotate as the player rotates?
(To …
Thanks Chris. I ended up reverting to a backup of my game. Sticking with the older Unity version and without URP (as it was causing lighting issues).
Hopefully your response will help someone else down the line.
I'm now having *issues Crossfading from this camera (NavCam1) to another (NavCam2), then teleporting NavCam1 (within a game object) and crossfading back to it. I think its because theres a conflict with this Game Camera 2D (script) and teleporting. …