Placing and showing objects with an Array?

Get help using Construct 2

Post » Sun Mar 18, 2012 11:30 pm

Think Bejeweled, you've got a grid of x*x size (EG: 10 jewels * 10 jewels)
How can I do that? I mean, placing a single object in a grid of 10*10 and displaying it.

Here's done with jQuery

http://www.emanueleferonato.com/2011/10/07/complete-bejeweled-prototype-made-wiht-jquery/

Also I'd like to know how to smoothly move the falling jewels to their position when an older jewel is destroyed.

Thanks :)

(Yeah, i'm pretty much seeking for a full featured bejeweled Example :P)
B
7
S
1
G
1
Posts: 37
Reputation: 1,159

Post » Mon Mar 19, 2012 11:08 am

You should give a try to physics behavior! :)Jailson2012-03-21 13:44:11
B
228
S
6
G
8
Posts: 86
Reputation: 12,295

Post » Mon Mar 19, 2012 12:33 pm

If you're only moving one-dimensionally , for example if the blocks are just falling down on the Y-Axis- you could LERP instead, as this will afford you more predictable movement than phsyics, especially if you want things on-grid.

Set Gem.Y >   LERP(Self.Y,Self.y+GridSize,1^dt)


Image
B
27
S
9
G
5
Posts: 487
Reputation: 11,939

Post » Mon Mar 19, 2012 6:24 pm

i would love to know how to do this aswell, been trying and trying but haven't found a decent way to do this
B
22
S
11
G
9
Posts: 133
Reputation: 6,572

Post » Thu May 03, 2012 5:01 am

same thing here, i couldn't find anything either,
B
13
S
3
Posts: 59
Reputation: 1,589

Post » Thu May 03, 2012 6:06 am

are you looking for something using behaviours? Or are you comfortable enough with the event system to do everything manually (movement, collision, etc...)
B
64
S
8
G
9
Posts: 290
Reputation: 8,590


Return to How do I....?

Who is online

Users browsing this forum: Artpunk, DemantDigitalArt and 32 guests