-
Global Event
Well I copied the code from a frame to the global event editor, then deleted the code from the original frame, played it and it worked.
So, I then made my second frame and placed on it the same active objects used on the first frame, I didnt enter any coding (as the global event should work) and it didnt work, no coding what so ever.
Every object in the global event editor is shortcuted too, will this have anything to do with it?
Any ideas?
-
Global Event
Well I copied the code from a frame to the global event editor, then deleted the code from the original frame, played it and it worked.
So, I then made my second frame and placed on it the same active objects used on the first frame, I didnt enter any coding (as the global event should work) and it didnt work, no coding what so ever.
Every object in the global event editor is shortcuted too, will this have anything to do with it?
Any ideas?
-
Re: Global Event
On frame number 2:
To make the "same object" did you use the Insert an object menu or copy and paste the object from frame 1?
If you copy and paste the objects from frame 1 to frame 2 or use the create an object on frame 2 and refer to an object on frame 1 then the global events will work.
So in short I think its not really the same object in your case.
Thats why the global events don't work for you on frame 2.
-
Re: Global Event
On frame number 2:
To make the "same object" did you use the Insert an object menu or copy and paste the object from frame 1?
If you copy and paste the objects from frame 1 to frame 2 or use the create an object on frame 2 and refer to an object on frame 1 then the global events will work.
So in short I think its not really the same object in your case.
Thats why the global events don't work for you on frame 2.
-
Re: Global Event
Ah-Ha!
It worked.
Thank you. <img src="/center/images/graemlins/smile.gif" alt="" />
-
Re: Global Event
Ah-Ha!
It worked.
Thank you. <img src="/center/images/graemlins/smile.gif" alt="" />
-
Re: Global Event
I've noticed that you can "create objects" from other frames without including them in the frame editor. However, if you *copy and paste* a "create object" event (rather than re-creating it manually), it adds a shortcut instead of the actual object! I think this should be considered a "bug", as the behavior is inconsistent.
-
Re: Global Event
I've noticed that you can "create objects" from other frames without including them in the frame editor. However, if you *copy and paste* a "create object" event (rather than re-creating it manually), it adds a shortcut instead of the actual object! I think this should be considered a "bug", as the behavior is inconsistent.
-
Re: Global Event
Of course this is not a bug : global events and behaviors work with shortcuts and there is absolutely no possibility of them working with actual objects. So I create a shortcut instead.
-
Re: Global Event
Of course this is not a bug : global events and behaviors work with shortcuts and there is absolutely no possibility of them working with actual objects. So I create a shortcut instead.
-
Re: Global Event
That's not what I meant.
Create an object in Frame 1 using a "create object" event. Don't include it in the frame editor.
Now copy the event to Frame 2. The object shows up as a shortcut and is not included in the frame, even though Frame 2 is now identical to Frame 1 (the frame editor and event editor should be the same, since we just copied the only event from 1 to 2).
Incidentally, "Create Object" in global events or behaviors doesn't work unless the specified object has been manually added to every frame, even if the object is global.
Suppose I wanted to add an object to every frame. In theory I could add a Create Object event, cut and paste it to every frame. Then we don't have to use global events or behaviors (which don't allow qualifiers). However the event won't work unless you manually add the object in the frame editor, then delete it again, in every frame. How else could I add an object to every frame?
-
Re: Global Event
That's not what I meant.
Create an object in Frame 1 using a "create object" event. Don't include it in the frame editor.
Now copy the event to Frame 2. The object shows up as a shortcut and is not included in the frame, even though Frame 2 is now identical to Frame 1 (the frame editor and event editor should be the same, since we just copied the only event from 1 to 2).
Incidentally, "Create Object" in global events or behaviors doesn't work unless the specified object has been manually added to every frame, even if the object is global.
Suppose I wanted to add an object to every frame. In theory I could add a Create Object event, cut and paste it to every frame. Then we don't have to use global events or behaviors (which don't allow qualifiers). However the event won't work unless you manually add the object in the frame editor, then delete it again, in every frame. How else could I add an object to every frame?