Well I'm working on my game , and I'm trying to do this:
There is an event , name: Trap. (You can walk on this event )
there is another event , name: Rabbit ( this event moves randomly)
And there is another event , name: Bear( this event moves randomly)
Now , what I want to do is:
That when the rabbit , go on the trap , it gone , and leaves an item or so.
same with the bear , but I want that i can "tell" the trap when I want to catch
a bear or a rabbit.
Kruler.
switches, look in the tutorial database, or click zeriabs siggy to go to one
Zomg I did this a while ago, and the minigame itself was apparently so hard some people stopped playing cause of it. :'(
Quote from: Reives on December 29, 2006, 02:44:38 AM
With events:
Make 2 variables named obj X and obj Y
Make 2 variables named Destination X and Destination Y
Make a parallel process event, set objX and ObjY to the object's x and y location (available in the variables panel).
Set dest. X & Y to the destination's X and Y values.
Conditional branch; if objx = dest.x; then if objy = dest.y, [stuff happens].
My siggy is mentioned...
Just posting so you don't have to search :P
Thanks guys ,
I have another question ,
I tried using variables , switches and CB's , but I could'nt do this:
an event that only if the hero is level X and uppear ( X presents a number of course)
that he can go on it ( the event )
Quote from: Kruler on January 13, 2007, 09:42:38 AM
Thanks guys ,
I have another question ,
I tried using variables , switches and CB's , but I could'nt do this:
an event that only if the hero is level X and uppear ( X presents a number of course)
that he can go on it ( the event )
So you want an event that only starts if the actor is at a certain level, right? Well, if this is what your asking this is how to do it:
1.) Create a new Variable under "Variable Operation" (My Variable is called Actor1:Level)
2.) Set the Value of the Variable to equal the value of the Actors level, do this by Selecting "Hero" option and selecting "Level" in the drop down box. This says that every time the event is triggered (ie. stepped on) the Variable Actor1:Level will set the value to the level of the actor chosen.
3.) Create an If Statement, select the "Variable" option and choose the name of your variable, set the value that the variable has to be for the event to begin. For example, say you can only;y enter a certain area if you are level 5 or over, so set the Constant to 5 and then ">=" which tells the event to do whatever is in the If branch only if "Actor1:Level" is Greater Than or Equal to 5.
4.) Press Ok, and put whatever you want to happen afterwards inside the If branch.
Syn.
Thanks , you helped me alot
=)