Community

AGI Programming => Mega Tokyo AGI Archive => Topic started by: Xqzzy Rcxmcq on July 20, 2003, 08:00:36 PM

Title: end.of.loop(ego);
Post by: Xqzzy Rcxmcq on July 20, 2003, 08:00:36 PM
Can someone please tell me how to do an end.of.loop for the ego? I try to do

Code: [Select]
set.view(ego,5);
end.of.loop(ego,flag);

but that doesn't work....
Title: Re:end.of.loop(ego);
Post by: robingravel on July 20, 2003, 09:29:35 PM
Be sure the cel begins to 0.
set.view(ego,5);
set.cel(ego,0);


Robin Gravel
Title: Re:end.of.loop(ego);
Post by: Corby on July 20, 2003, 09:41:37 PM
Make sure you reset your flag:

if(isset(f100)){
reset(f100);
end.of.loop(o0,f101);
}
Title: Re:end.of.loop(ego);
Post by: Allen on July 21, 2003, 02:50:18 PM
Also, make sure that you have added the start.cycling function. It won't work without it. ;)
Title: Re:end.of.loop(ego);
Post by: Andrew_Baker on July 21, 2003, 11:34:48 PM
I had numerous problems using normal animation control commands on the ego, including some inexplicable bugs.  Instead, when I needed to use some of those tricky commands on the ego, I actually temporarily replaced it with a new animated object and used that.  Not the most elegant workaround, to be sure, but I had to do it.

Hopefully, you're a better, luckier coder :D
Title: Re:end.of.loop(ego);
Post by: Kon-Tiki on July 27, 2003, 01:20:05 PM
Teeheehee, this is a fun bug ;D

This doesn't work because the end.of.loop doesn't work with player inputted animations. What you need to do to get this working, is disabling the cursors-sensitivity of that object. You do this by using the refuse.input();-command (that's just off of the top of my head, might be something similar to that)
Now just treat ego like any other object. When you're finished, be sure to put the accept.input();-command (yet again, might be something similar) to make ego the command-eating pixelblob that it should be.

Hope this clears things up.

-Kon-Tiki-
Title: Re:end.of.loop(ego);
Post by: Nick Sonneveld on July 27, 2003, 07:25:00 PM
of course.  now i remember that the template set aside a certain flag to manually go through the loop i think.

- Nick