How can I make it so that I need a certain amount of star coins to enter a certain part of the world map? I need this, because its essential to my project.....does anyone know how?
Current Project : SMTFA
Coming Soon: NSMB DS Remake I'm a nice and cheerful guy, so give me a holler if you need something! ![]() Discord:https://discord.gg/3HKcnFJ Come to my discord to learn more about my stuff! | ||
Thats i been asking the WHOLE TIME.
Finally someone asks that Idk. | ||
Don't you know how to use global variables?with them you can do that,eh,most likely because hidding somethin in map dont work,they will appear again when you reestart the map.However,I only tryed to show hidden layer,not hidden them.
Not really up to it.
| ||
Can tyou explain how to use globe variables
| ||
I really don't have time now,but later maybe...
Not really up to it.
| ||
|
WHAT THE WHAT!!! How did I miss this forum!? this is the first thing I asked when I signed up on this website ( of course nobody answered) and so I gave up
and just used 1 green star per level gimmick.... | ||
First,let me say somethings
-I'm not sure if you can hide/show things in wrld map,so please test for me,as I don't have time now.(if it doesn't work in wrld map,then try on a level,I am sure it works in-levels). -I'm not placing images,because....you alredy know. -On the names of the variables/events,PLACE THE PARENTESIS exept if there's a warning telling you to not do. NOW how to do it: 1-First create your level with the 3 starcoins calling an event when collected.Done?(all levels with Starcoins must call the event) 2-Then open your world and create a variable in one of the options;for my example,I'll call it "StrCoin" but you can name it whatever you want.It's value should be 0. 3-Back to level you created,create a script and remember that Event you created,that the Starcoins call it?Search for a option inside it's with "Scripts" with a box right down,then search for the Script you created right now.In the Script you created,write down THIS:
In this case "End If" isn't need because you didn't used If statements. 4-Let's see if you get it(you knowmfor you learn to use them) You pick up the starcoin->It calls an event->It calls a Script->It incresses your variable by 1. A:Learn that for making basic stuff,in this case raising variables. B:But how they will help me? A:We will get on that part. Using Variables. 5-(I'm not sure if that work in world map,but if doesn't work,make in the level a barrier until you get that much star coins) Hide the level OR make a barrier blocking the level in world map(If doesn't work,in level) and call it a layer of choise.I will call it "Barrier",ok?,and a event,that hides(if it's a barrier) or shows(If it's the level itself).I'll call it "Barrier Destroy". and-oh,don't forget to make other script of your choice in that level/world,then make an auto-start event that auto-calls himseld after every 1 second(if is the case) that call him(The Script) 6-On the newest script,write down the following:
If the variable is equal(=) or higher than (>) the number need,then call the event. Note that END IF is need on that case,and,if it's the case,you can use minus(-),times(*) or divided(/) or lower than (<) 8-Extras -If you want that the player LOSE some Starcoins on appearence/entrace/barrier destroy of level,then add that to the script on the line that is BEFORE the End if but AFTER the Call TCreate ----
Hope that help you!
Last edited by Alvespires on 23 Dec 2016, 21:40, edited 5 times in total.
Not really up to it.
| ||
Ops-I forgot!You can only test it in Game itself.No Level Editor.
Not really up to it.
| ||
Oh my GOD!Now I noticed that Spoiler tabs don't allow blank spaces
I will fix those codes I made wrong right nowNot really up to it.
| ||
Who is online (over the past 5 minutes)Users browsing this forum: 1 guest | ||