|
Post by Kriven on Nov 24, 2006 0:26:38 GMT -5
Is there anyway to make the rooms loop like in the old Atari games? So that an object will go in one side and come out the other?
|
|
Bill
Buzzy Beetle
Posts: 2
|
Post by Bill on Nov 24, 2006 0:37:36 GMT -5
What is GM?
|
|
|
Post by Shrikeswind on Nov 24, 2006 0:56:54 GMT -5
Game Maker. It's a program that allows you to make video games on your computer.
Anyways, you do this. The event is "Outside room." Hit the Wrap button (It's categorized under "Jump," as in "Jump to this position.") Record whether you want it to just be horizontal, vertical, or both. That's all you gotta do.
|
|
|
Post by Kriven on Nov 24, 2006 1:01:11 GMT -5
Kay, thanks Shrikes. Just started actually doing something besides Pac-man with this thing Also, do you know how to make it so you have to hold a button like X while you're moving in order to run. You'd have to hold X. So like. Like in Mario games you need to hold a button to run. I think this may be the last thing I need to ask about in a while.
|
|
|
Post by Shrikeswind on Nov 25, 2006 0:19:38 GMT -5
I'd start with new objects. When the button is pressed, the object changes into running version, then, when you release it, the object returns.
|
|
|
Post by Kriven on Nov 25, 2006 20:04:49 GMT -5
I lied Is it possible so that if I made the object the camera follows change into a different object that the camera will follow my new object? EX: Camera follows Little Mario Little Mario turns into Super Mario Camera follows Super Mario?
|
|
|
Post by Shrikeswind on Nov 25, 2006 20:49:37 GMT -5
The camera follows motion. Therefore, as Little Mario walks, the camera follows him. When he transforms into Super Mario, the camera automatically starts following him as long as the same event occurs.
Now, for example, if you have a change in character planned, like Mario to Luigi, you'll want to make a new object that Mario would turn into until Luigi returns to that position. I'll give an example.
SMW Mario bumps into SMB Luigi. The two switch styles, and Luigi is now controlled.
How'd that happen? SMW Mario was a different object from SMB Mario. Both SMB characters have NO events for them, while the SMW styles do. When a collision occurs between World Mario and Bros. Luigi, World Mario changes object to Bros. Mario, and Bros. Luigi changes into World Luigi. Therefore, Mario stops moving and Luigi starts.
Now, since you're asking about camera, remember that you're controlling motion with the keys you're using for motion. When Mario changed to Luigi, Luigi became the focus of the camera because Luigi started moving.
|
|
|
Post by Kriven on Nov 25, 2006 21:34:11 GMT -5
I mean the object that the room follows... You can only choose one and not many, and since all of Mario's forms are different objects, the room doesn't know to scroll with those objects.
|
|
|
Post by Shrikeswind on Nov 25, 2006 22:26:41 GMT -5
That's the problem: The forms are all different objects. What you do?
1) One object, sprite is Little Mario. 2) Global.size is your variable. Default is on 0. Each form is a new size. So, in SMW, if Global.size=1, it's Super Mario. If Global.size=3, it's Cape Mario. If Global.size=0, it's Little Mario. So, however many forms you have is however many global sizes you have.
To alter that, here's what you do.
Object "Red Mushroom" collides with object "Mario."
If variable "Global.size" is not larger than 1... Set variable "Global.size" to 1.
Object "Fire Flower" collides with object "Mario."
If variable "Global.size" is not smaller than 1... Set variable "Global.size" to 2. Else... Set variable "Global.size" to 1.
In English, that means that if Mario hits a red mushroom, he becomes Super Mario (global size 1.) If he hits a fire flower, he becomes Fire Mario if he's Super or Fire Mario, but if he's Little Mario, he turns into Super Mario.
Should a Goomba hit GS3 Mario...
GS3 Mario, we'll remember, is Cape Mario. What do you do?
Object "Goomba" collides with object "Mario." If variable "Global.size" is more than 1... Set variable "Global.size" to 1. If variable "Global.size" is equal to 1... Set variable "Global.size" to 0. If variable "Global.size" is equal to 0... Kill Mario
Basically, that means that if you're either Cape or Fire Mario and you're attacked by a Goomba (as the case may be), you become Super Mario. If you're Super Mario and are attacked by a Goomba, you become Little Mario. If you're Little Mario and a Goomba attacks, you die.
|
|