How to control create object? *Urgent*

Get help using Construct 2

Post » Fri Oct 13, 2017 12:45 pm

Hi,
i am making another game. How to control create object? once that object created the count is increased. see link 1 you can understand what i mean...
how to control object create using variable? see the link2 box not open
link 1:http://prntscr.com/gwxgle
Link2http://prntscr.com/gwxixj
source file:http://yolkgames.com/swf/new.zip
B
10
S
3
Posts: 48
Reputation: 746

Post » Fri Oct 13, 2017 12:58 pm

Add "Trigger once" condition to your event:

Biox -> Box=1
System->Trigger once
Image

Did I help to fix a problem in your game? You can buy me a cup of coffee :) If you'd like to hire me, please see this post
B
17
S
9
G
129
Posts: 1,805
Reputation: 68,935

Post » Fri Oct 13, 2017 6:39 pm

thanks for your reply.... @dop2000
i have another bug. when i click the wooden box that wooden box opened in zoom shot again click the wooden box but is closed.... please tell me how to fix this issue......):
link:http://prntscr.com/gx2cqc
B
10
S
3
Posts: 48
Reputation: 746

Post » Sat Oct 14, 2017 1:44 am

hi @yolkgames ,

Your images are quite difficult to read, since your event sheet is full of variables names and other stuff we can't figure out until we know what they are.

Here is my take on it :

I think I understand your "box" object has 2 frames : One frame when it's closed, and 1 frame when it's opened.

Dragging the key will make it disappear and open the box, making the frame number change.

On your event sheet, event number 30, you tell your game to set your box frame to 1, then make its animation play, and then make it stop immediately after. That looks weird to me. If you want it to play, let it play, but if you do not want it to play, then make it stop straight away ?

Also, if you are having trouble with having animation frames, you could isolate each frame in a separate animation, and simply change the animations (containing a single frame only) when you need them. This would suppress the problem you could have with animation stopping/playing, which could be your problem since you are saying your box is "opened and then closed".

Hope this helps.
B
12
S
5
G
1
Posts: 39
Reputation: 1,528

Post » Sat Oct 14, 2017 4:36 am

Thanks
I find out the solution
B
10
S
3
Posts: 48
Reputation: 746


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 56 guests