Monday, September 12, 2022
HomeGame DevelopmentThe right way to resolve this query? - C++

The right way to resolve this query? – C++


When the dimensions of the sport scene exceeds the dimensions of the display, when the protagonist strikes to the precise, the scene will even transfer to the precise.
Suppose a button is added within the decrease proper nook of the display. When the protagonist strikes to the precise, the button begins to maneuver to the left.
If you wish to be sure that this button is all the time within the decrease proper nook, what do you have to do?


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

It might be extra like this hierarchy:

Scene
  | - Menu Layer
  | - Sport Layer

When Sport Layer strikes, it gained’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