Alternatives to Falling Blocks without Physic

Get help using Construct 2

Post » Fri Feb 15, 2013 4:33 am

Hi pals!

I would like to have a special solution how to alternate falling blocks and they stop falling if they hit to each block without using physics behavior.




Thanks!
B
96
S
25
G
20
Posts: 3,055
Reputation: 22,644

Post » Fri Feb 15, 2013 4:47 am

Bullets with gravity and maybe some bounce seems like a good start
B
49
S
14
G
3
Posts: 540
Reputation: 5,611

Post » Fri Feb 15, 2013 4:52 am

I making a puzzle where the blocks fall when some blocks were destroyed, sometimes i use custom movement behavior or y+ every tick. It was bad practice, then im looking best practices to mantain performance for mobiles without Physic.
B
96
S
25
G
20
Posts: 3,055
Reputation: 22,644

Post » Fri Feb 15, 2013 8:02 am

Could you store your blocks in an array , when a block is removed then step "up" through the array setting these blocks to fall ?
Or if you give each block sprite an x and y variable then could you select the required x sprites with a condition (hope these are the right terms)
August 2015 - I misplaced a lot of links - I will try to find backups and repost. If You find a post that interests please reply to post with @rampackwobble and I will get a nudge!

If you find my posts useful please consider donating something to a local charity or to the http://www.mndassociation.org/
B
59
S
30
G
34
Posts: 1,194
Reputation: 23,767

Post » Fri Feb 15, 2013 10:53 am

Been playing with the above idea

https://dl.dropbox.com/u/143636437/temp/gem1.capx
August 2015 - I misplaced a lot of links - I will try to find backups and repost. If You find a post that interests please reply to post with @rampackwobble and I will get a nudge!

If you find my posts useful please consider donating something to a local charity or to the http://www.mndassociation.org/
B
59
S
30
G
34
Posts: 1,194
Reputation: 23,767

Post » Fri Feb 15, 2013 11:32 am

@RamPackWobble, it's quite good BUT how do you animate falling blocks?
B
96
S
25
G
20
Posts: 3,055
Reputation: 22,644

Post » Fri Feb 15, 2013 3:04 pm

https://dl.dropbox.com/u/143636437/gemstest/invaders.capx

Having problems getting my head around the bullet behavior (thought it had a bug but it looks like I was wrong (again)). might need a custom movement system...

Anyway, might point you in directions you hadn't thought about...although they could be the wrong directions !
August 2015 - I misplaced a lot of links - I will try to find backups and repost. If You find a post that interests please reply to post with @rampackwobble and I will get a nudge!

If you find my posts useful please consider donating something to a local charity or to the http://www.mndassociation.org/
B
59
S
30
G
34
Posts: 1,194
Reputation: 23,767

Post » Sat Feb 16, 2013 2:46 am

[QUOTE=RamPackWobble] https://dl.dropbox.com/u/143636437/gemstest/invaders.capx

Having problems getting my head around the bullet behavior (thought it had a bug but it looks like I was wrong (again)). might need a custom movement system...

Anyway, might point you in directions you hadn't thought about...although they could be the wrong directions !
[/QUOTE]

Nice! Sometimes is not perfect at all, but it's still working like a charm! Thanks
B
96
S
25
G
20
Posts: 3,055
Reputation: 22,644

Post » Sat Feb 16, 2013 6:59 am

@RamPackWobble i posted a .capx what i'm having performance problem with CocoonJS.

http://www.scirra.com/forum/topic63583_post390047.html#390047


Your .capx seems a nice solution, but im figuring out how to keep correct positions, if you keep clicking any blocks and they get wrong position.
B
96
S
25
G
20
Posts: 3,055
Reputation: 22,644

Post » Sat Feb 16, 2013 7:09 am

Btw, a reference

B
96
S
25
G
20
Posts: 3,055
Reputation: 22,644

Next

Return to How do I....?

Who is online

Users browsing this forum: h1k3, Unconnected and 0 guests