Monday, September 12, 2022
HomeGame DevelopmentMethods to resolve this query? - C++

Methods to resolve this query? – C++


When the dimensions of the sport scene exceeds the dimensions of the display, when the protagonist strikes to the fitting, the scene may also transfer to the fitting.
Suppose a button is added within the decrease proper nook of the display. When the protagonist strikes to the fitting, the button begins to maneuver to the left.
If you wish to be certain that this button is at all times within the decrease proper nook, what must you do?


You most likely shouldn’t be transferring the scene, however quite a separate layer within the scene.

It might be extra like this hierarchy:

Scene
  | - Menu Layer
  | - Sport Layer

When Sport Layer strikes, it received’t have an effect on Menu Layer.

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments