Grid of sprites

Get help using Construct 2

Post » Sat Feb 11, 2012 1:49 pm

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.


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.
ImageImageImageImage
B
140
S
58
G
36
Posts: 2,547
Reputation: 31,170

Post » Sat Feb 11, 2012 2:36 pm

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.Kyatric2012-02-11 14:36:30
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 6,998
Reputation: 57,791

Post » Sat Feb 11, 2012 2:49 pm

ninja'd


..but still. Here's my CAPXWeishaupt2012-02-11 15:04:39
B
42
S
19
G
12
Posts: 723
Reputation: 13,911

Post » Sat Feb 11, 2012 3:12 pm

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
ImageImageImageImage
B
140
S
58
G
36
Posts: 2,547
Reputation: 31,170

Post » Sat Feb 11, 2012 3:14 pm

@Weishaupt yes, that's exactly why i wanted.
Thank You guys.
ImageImageImageImage
B
140
S
58
G
36
Posts: 2,547
Reputation: 31,170

Post » Sat Feb 11, 2012 3:16 pm

Glad I could help as well
B
42
S
19
G
12
Posts: 723
Reputation: 13,911

Post » Sat Feb 11, 2012 3:55 pm

@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
ImageImageImageImage
B
140
S
58
G
36
Posts: 2,547
Reputation: 31,170

Post » Sat Feb 11, 2012 4:01 pm

As I understand, it wait does not work in loops as "regularly" expected. That'
s why my CAPX looks a little more "messy"Weishaupt2012-02-11 16:02:04
B
42
S
19
G
12
Posts: 723
Reputation: 13,911

Post » Sat Feb 11, 2012 4:23 pm

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.
Kyatric2012-02-11 16:31:10
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 6,998
Reputation: 57,791

Post » Sat Feb 11, 2012 4:35 pm

[QUOTE=Kyatric]

@Weishaupt: you should take a look back at the tutorial about frame rate independence.
Also, think about finite state machine.
[/QUOTE]

AAAARGGG.....this sound just to much like school ...finite state machine - boy did I hate thisWeishaupt2012-02-11 16:37:18
B
42
S
19
G
12
Posts: 723
Reputation: 13,911

Next

Return to How do I....?

Who is online

Users browsing this forum: R0J0hound, Radulepy and 6 guests