Ok, so here's the script I'm trying to run:
set cy to 200
repeat 120
change cy by 0-cy/20
set y to cy
set ghost effect (or brightness) to (abs(cy)/2)
end
It doesn't matter if I use ghost or brightness, but as you can see, the sprite is supposed to coast into the center of the screen from 0,200 and fade in while doing this. The problem is, in presentation mode, if the variable cy is NOT SHOWING, the brightness of the sprite as it reaches the middle is too high. It doesn't matter if I'm using ghost or brightness, it's too high no matter what. I've tried clearing the graphic effects before, after, and during the script, I've tried setting the brightness or ghost effect to 100 and still it does it...the only time it works in presentation mode is if the variable cy IS SHOWING. So I tried having it show the variable, assign the ghost value, then hide the variable so the user wouldn't see the variable. No such luck. The variable must be showing at the end of the script in order for the sprite to have the proper brightness. However, this is only in presentation mode, if it's in editing mode, it's fine.
Anyone know what's going on here?
Offline
Ok, I fixed it by having it hide and repeatedly stamp during this section, but I would still like to figure out why it wasn't working.
Offline
I honestly don't know what would cause that... the only thing I could think of that might be related to the watcher would be the "set cy to" block, which references the variable it's changing. That shouldn't be a problem for any reason I could think of, but have you tried setting cy to a temporary variable and using that temporary variable as the argument in the formula? I saw that you created a "ghost" variable, but I'm not sure if that's exactly what you did.
Offline
Harakou wrote:
I honestly don't know what would cause that... the only thing I could think of that might be related to the watcher would be the "set cy to" block, which references the variable it's changing. That shouldn't be a problem for any reason I could think of, but have you tried setting cy to a temporary variable and using that temporary variable as the argument in the formula? I saw that you created a "ghost" variable, but I'm not sure if that's exactly what you did.
I didn't create a ghost variable, I used the ghost effect. And it still didn't work, which was completely mind boggling to me because even if the ghost effect goes below 0, it doesn't change the brightness, and I was resetting the brightness every time. I even tried replacing the entire script in hopes that maybe a block got corrupted or something and I could just replace it, but to no avail...I am however about to try the project for the first time after I closed it after it wasn't working, so we'll see what happens.
EDIT: Well that's not good...now even the stamping method messes up.
EDIT 2: That's even worse...I eliminated using the variable at all and just used the y position and it still happened...
Last edited by AtomicBawm3 (2011-09-09 20:23:14)
Offline
AtomicBawm3 wrote:
Harakou wrote:
I honestly don't know what would cause that... the only thing I could think of that might be related to the watcher would be the "set cy to" block, which references the variable it's changing. That shouldn't be a problem for any reason I could think of, but have you tried setting cy to a temporary variable and using that temporary variable as the argument in the formula? I saw that you created a "ghost" variable, but I'm not sure if that's exactly what you did.
I didn't create a ghost variable, I used the ghost effect. And it still didn't work, which was completely mind boggling to me because even if the ghost effect goes below 0, it doesn't change the brightness, and I was resetting the brightness every time. I even tried replacing the entire script in hopes that maybe a block got corrupted or something and I could just replace it, but to no avail...I am however about to try the project for the first time after I closed it after it wasn't working, so we'll see what happens.
EDIT: Well that's not good...now even the stamping method messes up.
That's really bizarre indeed. I'm afraid I don't know what could possibly cause it then.
Offline
YES! Got it to work finally. But still, I wanna find out why it was happening in the first place.
Offline
This probably belongs in Troubleshooting.
How did you get it to work? By comparing the two scripts, we might figure out what was wrong...also, did it work while the variable was hiding outside of presentation mode?
EDIT: I just put your script together, and it's working fine...my guess is that maybe you had another script interfering with it?
Last edited by Greenatic (2011-09-10 14:45:33)
Offline