I am using the if/else button as follows:
if: level=2
broadcast L2D01
else: broadcast L1D01
The problem is that the program is doing the if AND the else. Help!! Am I doing something wrong?
Offline
redinttown wrote:
I am using the if/else button as follows:
if <(level) = [2]> boadcast [L2D01] stop script else broadcast [L1D01] stop scriptThe problem is that the program is doing the if AND the else. Help!! Am I doing something wrong?
Offline
does the recieve L2D01 change the level ? quik enough before it stops script
Offline
it does not change the level it calls a sprite to a specific position
Offline
here is the full actual script and explanation of what it does
when i receive [L1D] if <(costume #) of [L1D01] = [4]> broadcast [L1D01] stop script else if <(costume #) of [L1D02] = [4]> broadcast [L1D02] else stop scriptWhat i am using it for is a breeding game. i have 10 sprites. each one is set to go to costume 1 and go to the eggs screen when they receive thier broadcast. if they are already active their costumes are 1-3. when they are inactive they go to costume 4
Offline
ok just added a wait 30 seconds between the broadcast and the stop script and its not even waiting the 30 seconds and its still doing the if AND the else. Please HELP!!!
Offline
Your script looks fine. The error could be elsewhere (maybe look at "when I receive [l1D01]" scripts?). If you upload the project that would help us out the most.
Offline
The problem is probably not your broadcasts in the script, but the receiving of the broadcast that starts the script. Check to make sure that is not being broadcasted multiple times.
Offline
ok im uploading it now. i would really really appreciate any help ya'll can provide.
Offline
Ok my project is posted. Can anyone have a look at it and help me? Please?
Offline
oh lol guess i should tell you that it is called Dragon Farm. anyway any help will be very much appreciated.
Offline
redinttown wrote:
I am using the if/else button as follows:
if <(level) = [2]> broadcast [L2D01 v] stop script else broadcast [L1D01 v] stop scriptThe problem is that the program is doing the if AND the else. Help!! Am I doing something wrong?
Last edited by PencilFactory (2012-04-08 14:42:09)
Offline
i figured it out!! thanks for all the help. it is most appreciated. the script was too long and was lagging everything. i had to change the way it was done. it ended up i had to change to using lists and it works so smoothly and perfectly now. Special thanks to Thescratch3 for this suggestion and special thanks to Icepath_River for setting the example in their project Cat Breeder Version 1. Your work is great and I learned a lot from it. Thank you so much!!!!
Offline
Glad you figured it out. It's a great feeling to finally fix a bug
Offline