- Joined
- Feb 13, 2014
- Messages
- 42
- Reaction score
- 11
- First Language
- English
- Primarily Uses
So, to simulate a first person view using images I'm having players walk on a tile, which brings up the image. The image varies depending on which direction the character is facing, obviously. In this example up and down are a forest path. Left and right are impassible trees.
Because the player is able to rotate in place, the event needs to be checked and updated without leaving and touching the tile again. As such, would the loop command as used in the below code be the best option for me? It seems to make things very sluggish (which is not surprising, being an infinite loop) but I'm not sure what would be better suited.
Because the player is able to rotate in place, the event needs to be checked and updated without leaving and touching the tile again. As such, would the loop command as used in the below code be the best option for me? It seems to make things very sluggish (which is not surprising, being an infinite loop) but I'm not sure what would be better suited.
Code:
◆Loop
◆Control Variables:#0001 CharOrientation = Direction of Player
◆If:CharOrientation = 8
◆Plugin Command:VisuMZ_4_ProximityCompass, Compass: Change Player Icon
: :Icon Index = 90
◆Show Picture:#1, forest, Center (640,260), (100%,100%), 255, Normal
◆
:Else
◆If:CharOrientation = 4
◆Plugin Command:VisuMZ_4_ProximityCompass, Compass: Change Player Icon
: :Icon Index = 92
◆Show Picture:#1, Forest Wall, Center (640,260), (100%,100%), 255, Normal
◆
:Else
◆If:CharOrientation = 6
◆Plugin Command:VisuMZ_4_ProximityCompass, Compass: Change Player Icon
: :Icon Index = 93
◆Show Picture:#1, Forest Wall, Center (640,260), (100%,100%), 255, Normal
◆
:Else
◆If:CharOrientation = 2
◆Plugin Command:VisuMZ_4_ProximityCompass, Compass: Change Player Icon
: :Icon Index = 91
◆Show Picture:#1, forest, Center (640,260), (100%,100%), 255, Normal
◆
:Else
◆
:End
◆
:End
◆
:End
◆
:End
◆
:Repeat Above