Grid of sprites

0 favourites
  • 12 posts
From the Asset Store
Snap to visible grid - perfect solution for any game genre
  • My goal is to make a menu made of 8x8 grids.

    Object should appear every "period of time" with transion and name.

    In short:

    + Create object

    • scale from 0 to 100 (or fade from 0 to 100, any transition)
    • set instance value to "name " & "number - or if it's possible. get namy from array

    + wait 1 second, Create object

    • scale from...
    • set instance value...

    + ...

    If it goes to number 4 go to new line, so object number 5 is first in second row.

    <img src="http://dl.dropbox.com/u/34375299/grid.jpg" border="0">

    I did that with Flash quite easily but i'm unable to reproduce that by events and it's about time to learn that in C2 ;)

    Here's what i've managed to do

    http://dl.dropbox.com/u/34375299/menu.capx

    If someone could show me how it can be done with short explanation how and why I would be very grateful.

  • I'm sorry only half the work done in this commented capx the drawing of the grid and setting of the name of the sprites.

    I'm not sure to understand exactly what you want/mean by "Object should appear every "period of time" with transion and name."

    Could you detail it a bit more (eventually put an illustration/video/whatever document).

    Hopefully this should take you half way there.

  • ninja'd <img src="smileys/smiley18.gif" border="0" align="middle">

    ..but still. Here's my CAPX

  • Thank You Kyatric capx is perfect, and so easy to do now if i know how.

    Object should appear every "period of time" with transion and name.

    by that i meant something like that

    http://dl.dropbox.com/u/34375299/apears.capx

  • Weishaupt yes, that's exactly why i wanted.

    Thank You guys.

  • Glad I could help as well

  • Kyatric is it possible to make a delay in loops?

    ie.

    For "loop" 0 to 3 - will make 4 sprites instantly

    i'm wondering if it's possible with loops to do it like that

    creat sprite -> wait 1 second -> create sprite - > wait 1 second ->

    and also, thanks for showing me nested loops, example is always better than plain text explanation in manual, thanks a lot

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • As I understand, it wait does not work in loops as "regularly" expected. That'

    s why my CAPX looks a little more "messy"

  • DrawGrid_Delayed.

    Briefly commented.

    There are two explanation of LERP listed in the how do I FAQ if you need it.

    Actually, in the capx, I spawn all sprites at once (as in my first capx), but activate/display them on a delayed basis.

    Weishaupt: you should take a look back at the tutorial about frame rate independence.

    Also, think about finite state machine.

  • Weishaupt: you should take a look back at the tutorial about frame rate independence.

    Also, think about finite state machine.

    AAAARGGG.....this sound just to much like school <img src="smileys/smiley23.gif" border="0" align="middle" /> ...finite state machine - boy did I hate this

  • That's how C2 is intended to be used though.

  • That's perfect, thanks You Kyatric

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)