Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: on Fri 25/04/2003 16:30:27

Title: object colours changing
Post by: on Fri 25/04/2003 16:30:27
I have an object that goes from left through right of the screen and comes back again. No problem with that but when I used "SetObjectIgnoreWalkbehind" it worked but the outline of the object wich was in black became transparent. If I turn the "SetObjectIgn..." to 0, it displays the black outline but it makes the object movement pointeless.This is the script for doing the object movement:

int timer=0;  

function repeatedly_execute() {
  timer++;
 if (timer>=75)  timer=0;
 if (timer==0)    MoveObjectDirect(4,260,144,3);
 if (timer==74)    MoveObjectDirect(4,26,144,3);

}

And to set it to ingnore the walkbehinds I´ve put a script line on AfterFadeIn interaction on the editor.

What Am I doing wrong?
thank you

Question: Can somebody tell me where to find good tutorials about making GUI´s?
Title: Re:object colours changing
Post by: Scummbuddy on Sat 26/04/2003 14:26:12
What kind of GUI?
Title: Re:object colours changing
Post by: on Sat 26/04/2003 16:25:38
custom gui. like inventory or others.
about the outline of my object, any clue?
Title: Re:object colours changing
Post by: Enlaithion on Mon 28/04/2003 22:55:47
Here ya go:  http://www.agsforums.com/yabb/index.php?board=6;action=display;threadid=5536;start=0

Just read to the bottom.  There are a couple of very good links for creating custom GUIs.   :)
Title: Re:object colours changing
Post by: on Mon 28/04/2003 23:32:24
thanks for the tutorial links Enlaithion, I´ll check them now!
as for my other subject of this topic, it has been solved
Title: Re:object colours changing
Post by: Enlaithion on Tue 29/04/2003 01:27:30
Sure.   :)

How did you alter your script to fix the other question?


Enlaith
Title: Re:object colours changing
Post by: on Tue 29/04/2003 02:01:23
my script was fine, it had to do with version 254, the new beta3 has that fixed