- This topic has 5 replies, 3 voices, and was last updated 1 year, 2 months ago by jezuk.
-
AuthorPosts
-
2023-09-27 at 5:44 pm #67173jezukCustomer
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!
:)
2023-09-27 at 7:30 pm #67186xeonCustomerIt 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?
NoDo 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.com2023-09-27 at 8:11 pm #67194kdvParticipantPuzzles 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 coding. 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 the meaning at all.
2023-09-27 at 8:56 pm #67197xeonCustomerWell…. 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 1 year, 2 months ago by xeon.
Xeon
Route 66 Digital
Interactive Solutions - https://www.r66d.com
Tutorials - https://www.xeons3dlab.com2023-09-27 at 9:16 pm #67200kdvParticipantIf 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 coding. 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 the meaning at all.
2023-09-28 at 5:02 am #67209jezukCustomerGuys, this is fantastic, thank you all so much for taking the time to reply, with really nice indepth answers :)
I really appreciated it :)
-
AuthorPosts
- You must be logged in to reply to this topic.