Problems with screen wrap
Player_E
Member, PRO Posts: 604
This has been quite the brain buster for me. In my current game I have the screen size set to 1440x960. All images start off related to the size of 480x320. When I zoom in all images resize to fit the proper 1440x960.
Issue here is screen wrap
While images are set to fit the 480x320 (zoomed out) the screen itself is set to 1440x960, so if I move along the X-axis once actors goes out of sight it takes for ever to wrap due to actual screen size being 1440x960.
I have tried setting the screen size to 480x320 and made a rule that would increase size once game is zoomed in, but for some reason it does not go up to the size I need it seems to only increase a little bit and stop.
I have tried the opposite of keeping scene size 1440x960 and when zoom in is not true reduce scene size down to 480x320, this works in theory, but for some reason the same issues still applies where the game does not truly wrap until actor hits the end of the 1440, not the 480 like I need it to be while zoomed out.
all in all I guess what im asking is this; is there a way to change the screen wrap position, or does it just have to be at the end of the screen size and ill just have to make due with a "teleporting" actor to make my actor wrap properly?
Issue here is screen wrap
While images are set to fit the 480x320 (zoomed out) the screen itself is set to 1440x960, so if I move along the X-axis once actors goes out of sight it takes for ever to wrap due to actual screen size being 1440x960.
I have tried setting the screen size to 480x320 and made a rule that would increase size once game is zoomed in, but for some reason it does not go up to the size I need it seems to only increase a little bit and stop.
I have tried the opposite of keeping scene size 1440x960 and when zoom in is not true reduce scene size down to 480x320, this works in theory, but for some reason the same issues still applies where the game does not truly wrap until actor hits the end of the 1440, not the 480 like I need it to be while zoomed out.
all in all I guess what im asking is this; is there a way to change the screen wrap position, or does it just have to be at the end of the screen size and ill just have to make due with a "teleporting" actor to make my actor wrap properly?
Comments
seriously though, any help or input from anyone would be very much appreciated.
0_o' I have no idea how to do that ... perhaps a boolean that says AmIVisible
Then if the actor is not visible it moves them to the visible area.
You might need some way to track coordinates and speed and apply appropriately.
Good luck - let us know if you find an answer. Looks like a question I might run into at some point in the future.