Quick Links: Download Gideros Studio | Gideros Documentation | Gideros community chat | DONATE
Gridmap — Gideros Forum

Gridmap

CyberienceCyberience Member
edited February 2013 in General questions
I am moving into a new arena for applications, this is the pro arena, not game orientated. as such I found that the grid map is an excellent method to produce a scrolling menu grid. where you naturally slide the map around left/right/up etc. my question is this. is there a simple method to make it infinite in scrolling, what I mean by this is, when scrolling to the right, it comes back to the left, and creates a scrolling world like behaviour.
The only way I can think of at the moment is, the world is larger than the view, by a whole view and a half, when the scroll is placed out side the central window space, I place the view in the same position but on the opposite side. For example, Scroll down, when into the ovelap area, I then reset the view to the top, on the touch end event, creating a seemless scrolling world.
Any ideas or suggestions that may be better than this?

Regards
Geoff
REAL programmers type copy con filename.exe
---------------------------------------
Tagged:

Comments

  • So basically you want to create some sort of a 360 degree panoramic view?
    If you can scroll in all four directions (up/down/left/right) I think you should use a map that is four screen sizes placed like:
    00
    00
    and then try to manipulate them the way you described.

    This actually sounds very interesting, please share your finding and problems and keep us posted :)

    Likes: Cyberience

    +1 -1 (+1 / -0 )Share on Facebook
  • Yes will do. Won't take me long, I sometimes like to check if its done already, so I don't reinvent the wheel, but if not, the it's worth my brain power :)
    REAL programmers type copy con filename.exe
    ---------------------------------------
  • @Cyberience: The easiest way to achieve this is to create a map 1 screen bigger than is required so if your map is 2000 x 2000 pixels then you want to create one 2320 x 2480 and repeat the top section (from 0,0) and place it at 0,2000 and repeat the left part of the map (from 0,0) and place it at 2000,0. Then when you scroll around your map and hit the edge where the x or y == 2000 then you reset that edge back to 0. Something like this:
    -----------VVVV This is the left edge repeated
    9111111111199111
    8222222222288222
    8222222222288222
    8222222222288222
    8222222222288222
    8222222222288222
    8222222222288222
    8222222222288222
    8222222222288222
    8222222222288222
    8222222222288222
    8222222222288222
    8222222222288222
    8222222222288222
    9111111111199111
    9111111111199111	< This is the top repeated
    8222222222288222	<
    8222222222288222	<
    8222222222288222	<
    I hope this makes sense to you :)


    Likes: Cyberience

    +1 -1 (+1 / -0 )Share on Facebook
  • Yes pretty Clear. I am thinking at the moment on whether I should use the Gridmap or individual sprites, the reason is, when the ui loads up, I will float in the images to the menu grid. think like a photo album, and the images load in randomly and float into place then lock, I could, use a grid, and when they are floated into place, then ponk them into the frame.
    I should get this done by the week end, if my boss leaves me alone to do it :)
    REAL programmers type copy con filename.exe
    ---------------------------------------
  • Further on, it seems the Tilemap is really of no use, as I create an array of individual sprites at set position, within a parent sprite, it looks like the Tilemap is just bloat.
    REAL programmers type copy con filename.exe
    ---------------------------------------
  • techdojotechdojo Guru
    Accepted Answer
    Tilemap is a LOT more efficient than a list of sprites - it's specifically designed to render tilemap backgrounds for games, it's probably not the best solution for what you want. Keeping a list of individual sprites (possibly as a 2D array) and then tweening them to their final positions is probably a better solution

    Likes: Cyberience

    WhiteTree Games - Home, home on the web, where the bits and bytes they do play!
    #MakeABetterGame! "Never give up, Never NEVER give up!" - Winston Churchill
    +1 -1 (+1 / -0 )Share on Facebook
Sign In or Register to comment.