It's ok, thanks.
I will study it more and give back if I have some doubts.
Ciao
Eros
Sorry man, I forgot about these. Ok...
Only a trigger can start running an event. But if an event is inactive, then it will not run, even if a trigger was fired.once event is created and active, do I also have to call tbem_addtrigger even if event has been set as active?
I was thinking about a new function were you can fire a trigger eventID related. Like TBEM_AddEventTrigger(eventID) or so.
That will fire a trigger only on a certain event.
Event types and groups are two different things, not related to each other. And the event type doesn't have to be unique but having several event types with the same number would make no sence. A trigger with its event type sets the runflags of all events with the same type. So if eventtype, the time related fields and the active flag fit to the trigger, then the event's runflag will be set to TRUE and the event will run next time TBEM_Run will be called.event type must be a unique number all around or unique inside a group? If event type is unique all around, why groups?
I mean, can I have EventType 1 in 2 different groups? If yes, how can tbem_addtrigger knows what to trigger
Now about the event group. Remember event types set the event's runflag. If you have set the event's group then an event will only run during the call of TBEM_Run, if it has an event group equal to the parameter of TBEM_Run. This can be usefull if you want to make sure that some events will be running before others. Of course you would need to call several TBEM_Run with the defined events groups in one frame.
See it like a tool to kinda sort the running order of events. If all events have the same group and the same time parameters, then they run in the order of creation. I'm having the idea allready for some kind of reorder command. So you can switch events within the internal event list.
Do you want me to create a little example?
It's ok, thanks.
I will study it more and give back if I have some doubts.
Ciao
Eros
www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000
Here is a little sheet to visualize it more.
Hi Mike,
very nice scheme!
But I think there are few typos, for example comment for Step4, I think there should be "RunFlag of Event1 and Event3 will become TRUE" ( as they are both type #1 ).
On Step 5 and Step 6 I got completely lost then :-[
But maybe I misunderstood it.
Thanks,
Petr
P.S. Which proggie did you used to create the picture?
Learn 3D graphics with ThinBASIC, learn TBGL!
Windows 10 64bit - Intel Core i5-3350P @ 3.1GHz - 16 GB RAM - NVIDIA GeForce GTX 1050 Ti 4GB
Sorry Petr, my fault. I uploaded a correct version. I hope it is understandable. It was made with InkScape.
No problem,
thanks a lot!
Petr
Learn 3D graphics with ThinBASIC, learn TBGL!
Windows 10 64bit - Intel Core i5-3350P @ 3.1GHz - 16 GB RAM - NVIDIA GeForce GTX 1050 Ti 4GB
Bookmarks