wrap on layer smaller than scene?

jmp909jmp909 Member Posts: 73
edited November -1 in Working with GS (Mac)
Is it possible to wrap on a layer that is smaller than the main screen (eg a viewport)? generally you wouldn't always want your game to take up the full screen size as you might want some controls/score interface UI in there etc

basically something like this slide game
http://www.mindjolt.com/games/staries

(ignore the match3 mechanism, i'm just looking at the row/column wrapping)

i guess you could use 7 actors per row and have the first equal the last but i didn't fancy the maths & logic ;)

thanks
j

Comments

  • jmp909jmp909 Member Posts: 73
    as an example...to explain a bit...i wasn't going to use a "match 3" type mechanism, just ocasionally a user would have to slide a grid item to a certain slot around the edge of the board (but ocasionally some sliders would be blocked from moving left/right or up/down etc)

    So i'd basically be using a collision with actors on the grid against an invisible actor at the edge of the board and checking it matched the requirements (or i could do it based on coordinates maybe). But i want my actors to wrap around if theyre just sliding through from one side to the other. Presumably, then, because i'm not just using Scene Wrap, since my game viewport is smaller (the rest is used for stats etc) then i'd need a duplicated clip at the end of the row thats the same as the first one on the row, and maybe use global game variables to keep them matched

    eg

    G||ABCDEFG||

    sliding right then gives

    F||GABCDEF||

    (where || are my board edges)

    also i'd probably need to have a bordered layer above to mask them off.

    Anyone done anything like this?

    j
  • JackBQuickJackBQuick Member Posts: 524
    I dealt with the same issue in my game, and even thought about a duplicate actor at the end of rows/columns just like you did.

    In the end, I decided to use the entire board -- it would've been complicated to make it smaller and necessitated taking up precious resources to make it work.
Sign In or Register to comment.