How to suppress camera movement when using 2D Scaleform Buttons

How to suppress camera movement when using 2D Scaleform Buttons

dendroaspis
Contributor Contributor
278 Views
1 Reply
Message 1 of 2

How to suppress camera movement when using 2D Scaleform Buttons

dendroaspis
Contributor
Contributor

Hey guys,

I created some simple buttons with scaleform and want to click them to change a color of an object.

I started with the basic template. To reveal my mouse cursor I entered the following in the player_hud.lua:

   if stingray.Window then
            stingray.Window.set_show_cursor(true)
            stingray.Window.set_mouse_focus(true)
            stingray.Window.set_focus(true)
        end

 

Now I can see my mouse cursor but the camera is still moving when using the mouse. How can I change it?

 

You can see the problem here in this video at 21:31 min : https://www.youtube.com/watch?v=vHyoLSQ9jCk

 

 

Reply
Reply
0 Likes
279 Views
1 Reply
Reply (1)
Message 2 of 2

Shanii2
Collaborator
Collaborator

That is because you are using the camera from apkit that is on fly mode. You can simply get rid of it by creating a new camera in level and position it appropriately and set that as an active camera. on level load. Then you can use some other method to move your camera around while, continuing using mouse freely.

Reply
Reply