Now since I was able to create a camera view that followed the main sprite where ever it went, I came across another problem in which the mute button is no where to be found. This is because the mute button was actually in a fixed position. Since the camera is always moving, the mute button appears once the object reaches the edge of the room. Upon a bit of researching, I was able to create this script for the mute button:
x = view_xview[0] + view_wview[0] - sprite_width - 15;
y = view_yview[0] + view_hview[0] - sprite_height - 5;
Now where ever the camera follows the mute button will always be accessible. I actually was glad I found this issue early on before I started adding on more rooms, scripts, etc.
No comments:
Post a Comment