Spawn actors in correct positions regardless of what device (i.e screen width)?

Daniel543MDaniel543M Member, PRO Posts: 47

Hi guys,
I've got an issue that I can't really find a good way to fix.

Basically, in my game, a gameover actor is spawned when you lose. Then another few actors are spawned which display the amount of time that the game lasted before you lost.

On the default size (iPad Landscape) it works fine, but when I change the device to anything else (e.g. iPhone 6 Landscape) the positions get messed up.

I don't really know how to make it spawn in the correct spot regardless of what device the game is played on.

The thing is, the actors are in an arbitrary spot (x:615 to x:868). This prevents me from doing things like having them at the x position of: (screenWidth/4)*3 which is at 3 quarters of the screen.

I hope that I've made the issue somewhat understandable.

Thanks!
Daniel

Sign In or Register to comment.