View Full Version : how do i make it that the game detects if a image is on the stage
dad00
02-24-2008, 02:33 PM
how do i make it that the game detects if a image is on the stage and if it is it displays a image at x,y
Note:you image i want it to detects dissapears after a few secends (ive done the code for that so i dont need help with that) but i want it so the image stays after the other images dissapears
spitplatt
02-24-2008, 03:37 PM
Can you explain a bit more?
I don't understand what you want.
how do i make it that the game detects if a image is on the stage and if it is it displays a image at x,y
How have you placed the image on the stage? Is it in a movieclip? Are you attaching it with actionscript?
If your image (movieclip) is called "mc" you can check these things:
if (mc._visible) {
trace("mc is visible")
}
if (mc._alpha == 100) {
trace("mc alpha is 100%");
}
else {
trace("mc alpha is "+mc._alpha);
}
if (mc._x == 50) {
trace("mc X coordinate is 50");
}
if (mc._y == 30) {
trace("mc Y coordinate is 30");
}
Note:you image i want it to detects dissapears after a few secends (ive done the code for that so i dont need help with that)
but i want it so the image stays after the other images dissapears
What do mean here?
If you're fading the other images, just don't fade the one you want to remain showing.
|
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.