Pages: 1
Topic closed
i had a script like this :
When flag pressed
set shotstoreset to 0
Forever&inforev&
if (touching edge or touching goomba or ___ or touching ___
change shotstoreset 1/round 5
end if
if shotstoreset = 100
Clear
set shotstoreset to 0
end if
&outforev&
but imagine this with a red lining around it that pretty much says "this wont work so delete me" anyone have an idea about this anomaly?
/ |------\ ______ 555555 666666
| | | |______ 5 666
\ |____/ ______| 555 66666
55 66 66
5555 666
Offline
Check for any problems with anything, really. It gives you a red lining when you try doing impossible things like dividing 4000 by 0 or something.
I'm not sure I understand the script. What does end if mean? And &inforev& means...?
Offline
As coolstuff says, you probably have a division by zero problem. Check to see that the denominator of any division you are doing isn't ever zero.
Offline
I agree with the above, as usual. That "round 5" block sounds odd. Do you really mean you are rounding the integer 5 to itself? Or is that an S.
Offline
Topic closed
Pages: 1