Step event:
if(resizer_step())
{
show_message("yes")
event_user(0);
with(all)
{
event_perform(ev_other, ev_user0)
}
}The message "yes" comes up. event_user(0) is not executed, neither is the event_perform.
Two of my objects have a User Defined 0.
The above code's object's User-Defined-0:
show_message("three")The message does not come.
Also neither does the other user-defined 0 (the object IS in the room):
show_message("WORK FOR FLIPS SAKE!!!")
event_user(1);event 1 is irrelevant.
HOWEVER: In the create event for the above object, event_user(1) does work.
I don't know what I am doing wrong.
Previously event_perform(ev_other, ev_user0) was event_user(0) but I changed it to see if it would work, the event_user(0) above the with() wasn't there and neither was the show_message.
erm... help?
Edit
The with() is being executed properly, previously i had a show_message() in there... but that came up 1 more time than there was objects...
Edit again
Erm, would calling a room_restart() in the resizer_step() event cause the user-defined events to not get executed? : whistle :
Apparently so... but the show_message() is executed and the event_user() is not, how come?
Edited by Darth, 26 October 2007 - 04:30 PM.











