Global events are events that show up in every frame. You can use global events for events that are repetitive.
Here is an example, the events are done only once but they apply in every frame.
global_events.mfa
Global events are events that show up in every frame. You can use global events for events that are repetitive.
Here is an example, the events are done only once but they apply in every frame.
global_events.mfa
wait, so can we do all of our programming in global events? Would this negate the need for a level editor?
I hate to bring this sei-old thread up, but not enough to not do it anyway.
I loe the idea of Global Events and am just learning to use them. Yet, I constantly see advice to stay far away from using or relying on them. I don't see any reasons accompanying that logic though. So, what do people think of Global Events? If stay away, then why? It SOUNDS really useful, like a way to not copy over and duplicate code across frames.
I use global events and it works perfect for me![]()
> So, what do people think of Global Events? If stay away, then why? It SOUNDS really useful, like a way to not copy over and duplicate code across frames.
One thing I know for sure is that within Global Events you cannot use qualifiers. I don't know if there are other drawbacks connected to them.
Some time ago I tried to test (1) an application with events only in Global Events and (2) an events in each frame, I remember there was not at all a substantial difference. Anyway, I would also be interested in potential advantages of Global Events instead of common 'events in all frames' approach (which I also use).
No qualifiers = deal breaker. You can bypass this using switches/flags , but switches impose a 1 frame delay, at the very least.
For example:
Global Events:
Player right sensor collides with active object 1 > Set Flag 0 ON
Regular Events:
Flag 0 Is on
- Perform Action
The action will activate 1 frame later than if you would have just coded it in the regular event editor.
I tried to make a full-fledged custom platform engine with global events and it just isn't made for that kind of stuff. I'd keep my global events as simple as possible if I were you.
When you use Global Events you haven't access to Groups in Frames . You can not use qualifiers as faber said. Behaviors have same problem too.So unfortunately only way is make Level Editor.
alterable values also lose their names in global events.. which make it hard to keep things organised.
Yeah....your right.I see now. Another big issue in Fusion. I don't know that.