how to drop the box after clicking on it

Get help using Construct 2

Post » Thu Aug 01, 2013 3:06 pm

hi all,
       i'm struck in the middle of a small game which i am doing.

i have a number of boxes(with same name)if i click on the particular box it has get destroyed and the box which is present above it should fall descending on it.

I have destroyed by clicking on it but could not make other boxes to fall down.

i tried like
     +For each Sprite, order by sprite.Y descending
     -> Stop loop
     -> ScrollY to lerp(scrolly,Sprite.y, dt*Speed)
but all my images are going up not falling down as naturally.

EX:

[1]-- think this is a box
[2]--think this is a box
[3] "   
[4] "
[5] "

if i click on box[3] the above box should fall down on box[4] and should display like
[1]
[2]
[4]
[5]
may be i have used the boxes with same name is this making to move all at a time..

Thanks in advance
B
3
Posts: 18
Reputation: 211

Post » Thu Aug 01, 2013 4:53 pm

Can you please show us your .capx? If you dont want to show the whole game, you can make another, including the problem.
B
39
S
16
G
6
Posts: 238
Reputation: 7,915

Post » Fri Aug 02, 2013 12:31 am

Y goes down, use a negative.

(X=0, Y=0 is top-left)
B
18
S
5
G
4
Posts: 568
Reputation: 5,079

Post » Fri Aug 02, 2013 6:22 am

hi california,
          sorry,i could not get you what to do,Could you explain me in detail please.
B
3
Posts: 18
Reputation: 211

Post » Fri Aug 02, 2013 6:57 am

yeah sure valdoss, here is the dropbox link

if i click 3rd box the above box has to fall down as like 4,3,2.

https://www.dropbox.com/s/nksb9f4j0a2oh5a/sample.capx
B
3
Posts: 18
Reputation: 211

Post » Fri Aug 02, 2013 10:49 am

@v2k

Something like this?

.capx
B
20
S
6
G
4
Posts: 347
Reputation: 4,451


Return to How do I....?

Who is online

Users browsing this forum: facecrime and 9 guests