Powered by Invision Power Board

 
    Reply to this topicStart new topicStart Poll

> Problems with level entrances, I'm really really stuck
United States
blackcat12
  Posted: Jul 8 2008, 02:55 PM
Quote Post


I see you
[*]

Group Icon
Group: Members
Posts: 678
Member No.: 5144
Joined: 6-April 08

Status: (0d) [--]


In Wario Land X, I'm trying to make it so that there are level entrances in the hub area that will only open once you've completed the previous level(similar to Wario World). But I have no idea how to implement this, because I know that it's hard to make this kind of thing in Game Maker. So I could really use some help on this. (I have GM7, just so you know)

This post has been edited by blackcat12 on Jul 9 2008, 12:58 PM


--------------------
PM
Top
Sweden
Boomb
Posted: Jul 8 2008, 03:12 PM
Quote Post


Exploding awesomeness!
[*][*][*]

Group Icon
Group: Members
Posts: 723
Member No.: 4724
Joined: 16-November 07

Status: (0d) [--]


You know how to use global variables?


--------------------
PMEmail PosterUsers Website
Top
United States
blackcat12
Posted: Jul 9 2008, 12:57 PM
Quote Post


I see you
[*]

Group Icon
Group: Members
Posts: 678
Member No.: 5144
Joined: 6-April 08

Status: (0d) [--]


No; I've heard of them, but don't know how to use them.


--------------------
PM
Top
United States
M. C. Productions
Posted: Jul 9 2008, 01:00 PM
Quote Post


Mario series' gals = #1!
[*]

Group Icon
Group: Members
Posts: 700
Member No.: 3100
Joined: 22-December 06

Status: (0d) [--]


Honestly, I don't use Game Maker, but I CAN say that using global variables will be your best bet in terms of level tracking. Something like "player can enter this level after completeing THIS number of levels prior to it".

Good luck implementing it, though.
PMUsers Website
Top
Canada
Mewizkuit
Posted: Jul 9 2008, 01:13 PM
Quote Post


CHARMANDER
[*][*][*][*]

Group Icon
Group: Members
Posts: 4397
Member No.: 2508
Joined: 16-August 06

Status: (0d) [--]


To make a variable global add global. to it.

Exampe: global.variable


--------------------
QUOTE
whenever i feel like clicking "reply"
i stop and think to myself, "why"
will it be a post to be remembered by?
or will i scare off a n00b and tell him to die?
PMEmail PosterMSN
Top
Sweden
Boomb
Posted: Jul 9 2008, 01:14 PM
Quote Post


Exploding awesomeness!
[*][*][*]

Group Icon
Group: Members
Posts: 723
Member No.: 4724
Joined: 16-November 07

Status: (0d) [--]


ok set this in the beginning of the game(But just once!)

global.lvl1=0

Then add this when you want the level to be finished.

global.lvl1=1

then in the door object in the Press key event

if global.lvl1=1
(insert room go to here)


--------------------
PMEmail PosterUsers Website
Top
Unspecified
Miaxis
Posted: Jul 9 2008, 01:24 PM
Quote Post


hagan bromas
[*]

Group Icon
Group: Members
Posts: 1799
Member No.: 2793
Joined: 12-October 06

Status: (0d) [--]


1.make as much objects as entrances you want
2.place the entrance objects at the positions
3.when exiting a room which leads to another entrance set the global variable aka global.ettype or whatev to the number of the entrance object
create/room start event of the entrances would be if global.ettype=numberofentrance
instance_create(x,y,obj_mario)


--------------------
user posted image

user posted imageuser posted imageuser posted imageuser posted image
PMEmail PosterUsers WebsiteMSN
Top
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

  Topic Options Topic Options Reply to this topicStart new topicStart Poll

 




[ Script Execution time: 0.0529 ]   [ 13 queries used ]   [ GZIP Enabled ]   [ Server Load: 2.48 ]