how to make fall down based on time limit

Get help using Construct 2

Post » Tue Aug 06, 2013 7:13 am

Hi friends,
           i have a problem in the game.i have many sprite images with the same name(sprite3) and i have kept that sprite images in the layout and also kept a time bar in it but few sprite images are out of layout .

coming to the game==

When i click on that sprite images it will get destroyed and when the time ticks up(that would be 10sec's) the sprite images which are present outside the layout has to fall down on the layout and need to display for every 10sec's.
          
          a b c--- sprite images outside the layout

---------------------------------------------------------
          1 2 3 4
          5 6 7 8----- sprite images inside the layout
-----------------------------------------------------------
   when i click on 1,2 3, after 10 sec's the one which is present outside the layout has to fall down in inside the layout

Can anyone help in this

Thanks
B
3
Posts: 18
Reputation: 211

Post » Tue Aug 06, 2013 8:27 am

On sprite3 clicked activate the sprite3 instance with the same x-coordinate. (even better would be just to spawn a new sprite at (sprite3.x,-100)) Start a timer and move when timer hits 10 seconds.
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Tue Aug 06, 2013 9:13 am


Sorry for the inconvenience Littlestain i have tried using different stuff but could not succeed.

Actual thing what i need is like after every 10sec's the sprite3 images that are present outside the layout has to fall down and set total score,wanted total. Sorry if i trouble you

Please help me,and here is the dropboxlink


https://www.dropbox.com/s/6mc7285or56561k/drop.capx
B
3
Posts: 18
Reputation: 211

Post » Tue Aug 06, 2013 10:10 am

The capx you posted uses a plugin (rex-functions) that I don't have so I can't open it.

if you spawn the sprite3 every ten seconds, set animationframe to random, give it a platform behaviour, let it drop and turn of the platform behaviour on collision with the onscreen instances. total.score.total wanted can just be taken from adding all visible.
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Tue Aug 06, 2013 12:10 pm

yeah thanks for that Littlestain,but the thing is after destroying i am getting the numbers through spawn and the animations are getting changed to anonther.
     
      But i actually what i need is like the numbers which i kept above the layout it has to fall down on the present screen which numbers are will be there and randomly it has to take numbers repeatedly after every 10Sec's and should match the Wanted Total to it.
B
3
Posts: 18
Reputation: 211

Post » Tue Aug 06, 2013 12:36 pm

If you want the numbers already there just follow my explanation from the give it platform behaviour part.

I don't know if you have changed a lot of code since the last time I changed "your" game, but this shouldn't be too hard by just using standard behaviours.
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Tue Aug 06, 2013 3:10 pm

Thank you so much LittleStain it's working :). Sorry once again if i trouble you.

i have tried what you said and that's fine but the thing is that Wanted total is not matching to drop down sprite images but actually it should get matched.I tried but could not get it.please help me

Here is the link where i removed Function plugin and made it
https://www.dropbox.com/s/e65c0ojieuk9gbt/demo1.capx
B
3
Posts: 18
Reputation: 211

Post » Tue Aug 06, 2013 3:25 pm

I don't know what you are trying to do, so before I change things again that shouldn't be changed, I'll ask.

Why do you want the wanted total changed?
Do you understand how the events and conditions in your program work?
You don't seem to try and change the wanted total in your event sheet.

As far as I know not many of the events in your game were actually written by you and you seem to have posted a question on the forum about every event in your event-sheet. Do you feel like you are learning from the help you get here?
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 10 guests