We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.

How are puzzles being executed in terms of sequence?

Home Forums Puzzles How are puzzles being executed in terms of sequence?

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #67173
    jezuk
    Customer

    I’m not a programmer, and I am having fun with creating puzzles, but I’m a little unclear how they are being executed;

    Does it matter if I have puzzles strewn all over the place?

    Do puzzles need to be listed in order of execution, i.e. from top to bottom?

    Do puzzles get executed from top to bottom and then loop continuously?

    Do puzzles get executed once and then what?

    What if I have puzzles side by side, which ones get executed first?

    There isn’t any explanation I can find in the manuals regarding this so I’d like to understand this a little bit more.

    Thanks!

    :)

    #67186
    xeon
    Customer

    It can definitely be confusing if you are not a programmer. I will do my best to answer your questions:

    Does it matter if I have puzzles strewn all over the place?
    The App Manager puzzle area is broken into Tabs. Puzzles you need to execute prior to the loading of your app need to go in this Tab. All other tabs are used once your application is loaded. Puzzles in any tab can be strewn about but you will want to lay them out in a visual way that allows you to easily find things.

    The next few I will just answer and then provide more detail at the end.

    Do puzzles need to be listed in order of execution i.e. from top to bottom?
    No.

    Do puzzles get executed from top to bottom and then loop continuously?
    No.

    Do puzzles get executed from top to bottom and then loop continuously?
    No

    Do puzzles get executed once and then what?
    No….see below.

    What if I have puzzles side by side, which ones get executed first?
    Depends on logic you have created.

    The simplest explanation I can give is that puzzles are executed if they are not a procedure or not contained in an event puzzle. In technical terms this is object oriented programming at its most simple.

    So if you had two puzzles in a tab other than the Init Tab. Let’s say PlayAnimation and TweenCamera. These two puzzles can be stacked or placed side by side and both would be executed. If the PlayAnimation was inside WhenClicked event and the Camera Tween was not…the Camera Tween would be executed and the WhenClicked would not. It would wait for the OnClick event to trigger the playing of the animation.

    Verge3d will not execute code more than once without code specifying it to be looped. There are a bunch of Time puzzles that execute things on a time or frame interval as well as do while etc. puzzles.

    For almost all applications I have created using Verge3d, I only have one puzzle that is alone and by itself. It’s a procedure call typically called Start/Reset. This procedure puzzle will contain all the variables and initial states of the application: Camera definition, position, variable values, states/flags, etc). It may even contain the play animation sequences to get things going just depends.

    After the application has started and gone through all the puzzles in the Start/Reset procedure. The interactive is typically event-based. So there are lots of When Clicked Puzzles, etc., and other procedures. Typically you want to minimize if not eliminate all the puzzles that are just loose lying around because they would be executed at the time of the Start/Reset procedure and that may cause issues.

    Since you are new to this you will want to play with things a bit.
    Start by creating a simple animation and then creating puzzles to control it.
    Start with puzzles just lying around and watch how they get executed.
    Then move your logic into a When Clicked event and see how that changes.
    It’s a process. I get it….and it will take a while to get used to but eXperiment, play, be prepared for unexpected results, and ask questions like you are now and you will start to understand quickly.

    Good luck

    Xeon
    Route 66 Digital
    Interactive Solutions - https://www.r66d.com
    Tutorials - https://www.xeons3dlab.com

    #67194
    kdv
    Participant

    Puzzles are executed from the top to the bottom and from the left to the right.

    Does it matter if I have puzzles strewn all over the place?

    Depends. In most cases No.

    Do puzzles need to be listed in order of execution, i.e. from top to bottom?

    Preferable.

    Do puzzles get executed from top to bottom and then loop continuously?

    Yes and No.

    Do puzzles get executed once and then what?

    Yes and Nothing.

    What if I have puzzles side by side, which ones get executed first?

    The left one if they are placed at the same height. Otherwise the higher one will be the first.

    Puzzles and JS. Fast and expensive.

    If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of meaning at all.

    #67197
    xeon
    Customer

    Well…. learned something new.

    With that in mind…keeping things in Procedures is better than leaving loose / free puzzles laying around in my opion and keeps stuff firing in the order you want rather than based on position of the puzzle.

    • This reply was modified 7 months, 1 week ago by xeon.

    Xeon
    Route 66 Digital
    Interactive Solutions - https://www.r66d.com
    Tutorials - https://www.xeons3dlab.com

    #67200
    kdv
    Participant

    If you want actions to be executed in a strict order just connect them. They will be executed one by one from the top to the bottom.

    Puzzles and JS. Fast and expensive.

    If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of meaning at all.

    #67209
    jezuk
    Customer

    Guys, this is fantastic, thank you all so much for taking the time to reply, with really nice indepth answers :)

    I really appreciated it :)

    :yahoo:

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.