How to control create object? *Urgent*

0 favourites
  • 5 posts
From the Asset Store
Hand-painted tiles, objects, animated objects, and background to build a colorful Mayan civilization environment.
  • 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

  • Add "Trigger once" condition to your event:

    Biox -> Box=1

    System->Trigger once

  • 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

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • 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.

  • Thanks

    I find out the solution

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)