Is there a reason why Wrap X/Y isn't working with values >1000?

birdboybirdboy Member Posts: 284
edited March 2015 in Working with GS (Mac)

Hey everybody,

I've been trying to use the wrap x/y scene function for the background in an universal game and found out that it isn't usable if some values are above 1000. (btw: I know how to let a background repeat itself with multiple actors, but i think using wrap x/y is much more efficient... especially if the background is moving diagonally in which case you'd need quite a lot of actors to let just one layer of the background repeat itself).

It seems that once the height or width of your scene or your camera gets above 1000 there is some weird gap which doesn't exist if both values (scene and camera) are lower than or equal to 1000. I've created a small demo project with 4 different scenes for you to see what I'm talking about. s(x,y) in the scene name stands for scene size, c(x,y) for the camera size. The only scene working properly is the one where both values are (1000,1000). The other 3 show this weird jumping gap at the edge of the scene.

So does anybody know a way to use wrap on iPad or the reason why it's behaving this way?

Comments

  • BBEnkBBEnk Member Posts: 1,764

    There is a bug with wrap if your messing with camera size, see bug I reported below.

    http://bugs.gamesalad.com/show_bug.cgi?id=517

  • birdboybirdboy Member Posts: 284
    edited March 2015

    Oh, nice to know that you already submitted a bug report for that. But the thing is that even if I don't mess with the camera size at all wrap still doesn't work with values >1000. In the scene in my demo project where I didn't change anything (camera and scene are both 1024x768) wrap is broken. At the same time in the scene where i messed with the camera size and scene size (1000x1000 both) everything is working fine.

    Just creating a iPhone 5 Landscape project and simply setting the scene width to 1200 with an actor (width = 1200) will yield the same result (a gap). Without changing anything about the camera.

    Maybe I'm missing the point and we both mean the same thing. ^^

  • BBEnkBBEnk Member Posts: 1,764

    I see now your moving background at a 45 degree angle but your image is only 1024x768 so it's not square, So at some point you will get a gap because it just no longer fits. I change image size to 1256x1256 and no gap.

  • birdboybirdboy Member Posts: 284
    edited March 2015

    I tried this out already. Unfortunately the gap is still there. You just made the actor so big that it's overlapping with itself and the gap isn't visible anymore. But if you change the opacity of the 1256x1256 actor to 20% you will see that it's still making this weird jump (which ultimately results in the gap when the actor is not overlapping with itself). Also it wouldn't make sense for the actor having to be quadratic even if it's moving diagonally. As long as you don't start rotating the actor x and y should be completely independent from each other. So if the scene (with wrap x and wrap y) is 1024x768 and the actor is 1024x50 and moving diagonally, x should wrap perfectly at all times (in my understanding).

    I attached a demo project that shows what I'm talking about. Just ignore the actors name. It isn't named correctly, it has a size of 1256x1256.

  • BBEnkBBEnk Member Posts: 1,764

    yea seems it should just work and it may just be creator have you tried it on a actual device and see if it show the gap?

  • birdboybirdboy Member Posts: 284

    Unfortunately it's exactly the same on the iPad. Same gaps, same jumping. :(

  • birdboybirdboy Member Posts: 284
    edited March 2015

    @BlackCloakGS Sorry for having to tag you but I think this might be important since it seems like a basic function isn't working properly. Am I making a mistake in the demo project I attached in the opening post and everything is working as intended or is this a bug?

Sign In or Register to comment.