Hello, I am wondering if it is possible to create a statement of if the user gets to a certain score then it will change worlds. Any feedback is appreciated!
No if/then in BB2 Use the Logic > Event Observer in the Game Field UI to watch for scores and change worlds. https://www.youtube.com/user/GameAcademyCom/videos
Hi Andy and Logan, I'd have to disagree with Andy. If/then is exactly what the scripting is all about. The question is, does the API provide access to the components you need to do what you want to. The Add Point node is scriptable, so it's very possible to track the score from there and if the score reaches a certain number take some action. With that said, it does not appear there is an API call to switch worlds(at least not documented). Looks like you can switch scenes with this.scene().addLevel( name ), but I haven't tried it, and maybe this would allow switching to scenes in other worlds, but I haven't tried that either. Also, you may have to use your own variable to track the score because there does not seem to be a call to get the current score, only add or subtract to/from the score. Andy is right that the event observer will do what you want but won't provide the flexibility of scripting . If you don't know how to script, definitely don't waste your time and go with Andy's suggestion.
First question would also be is if he is using bb2 or bb3. If bb2 @AndyG reply is the perfect response since there is no scripting or nodes within bb2.
I assumed since it was in the 3.0 thread he was talking about BB3. Please clarify Logan242. Of course if he's talking BB2 and just posted in the wrong thread. Andy is absolutely right.
Hi, thank you all for your responses. I am using BB3 and that why I was just wondering if there was a way to script it but I don't know how to but I tried Andy's way and it seemed to work just fine. I can imagine there is a lot more things you can do with scripting though. Again, thanks for all the help!
I'm glad Andy's method worked for you. Yes, the advantages of scripting is that you can do infinitely more than without it, though that advantage will narrow in time as more nodes are developed and shared.