Hello, everybody...
I've got a little problem with AGS (Version 2.72). I'd like to make an Object fading in and fading out - while moving from the right side of the screen to the left side of the screen.
What my problem is: The object isn't fading in. I'm usingCode: ags to reduce the Transparency, but it doesn't work... That's very strange, because Code: ags - which I am using to fade the object out again - is working perfectly.
I've tried many things to make it work (I've even deleted all the room-script code one time, only leaving this "object[0].Transparency--;" one time but it didn't help ^^), but nothing worked...
I don't understand it... Can you explain the problem to me or is it some kind of bug?
Here is the complete room-script of that room - perhaps you'll find something.
Code: ags
OK, this was it...
(Sorry if you didn't understand anything, this was the first time I posted something in an english Forum...
)
I've got a little problem with AGS (Version 2.72). I'd like to make an Object fading in and fading out - while moving from the right side of the screen to the left side of the screen.
What my problem is: The object isn't fading in. I'm using
object[0].Transparency--;
object[0].Transparency++;
I've tried many things to make it work (I've even deleted all the room-script code one time, only leaving this "object[0].Transparency--;" one time but it didn't help ^^), but nothing worked...
I don't understand it... Can you explain the problem to me or is it some kind of bug?

Here is the complete room-script of that room - perhaps you'll find something.

#sectionstart room_a // DO NOT EDIT OR REMOVE THIS LINE
function room_a() {
// script for Room: First time player enters room
while (object[0].X > -251) {
object[0].X-=2;
Wait (1);
if (object[0].Transparency > 0){
object[0].Transparency--;
}
else if (object[0].Transparency < 100){
object[0].Transparency++;
}
}
}
#sectionend room_a // DO NOT EDIT OR REMOVE THIS LINE
#sectionstart room_b // DO NOT EDIT OR REMOVE THIS LINE
function room_b() {
// script for Room: Player enters room (before fadein)
object[0].X = 320;
object[0].Transparency = 100;
}
#sectionend room_b // DO NOT EDIT OR REMOVE THIS LINE
OK, this was it...
(Sorry if you didn't understand anything, this was the first time I posted something in an english Forum...
