Game Maker Questions Topic!!!

Need programming help? Want to post programming tips? Are you programming a game and want to show it off? That and more here.

Re: Game Maker Questions Topic!!!

Postby Jellonator » March 14th, 2011, 11:09 am

@alucard
Code: Select all
move_towards_point(playername.x,y,speedhere)
bepis lmao
User avatar
Jellonator
Code: Awesome

Error contacting Twitter
 
Posts: 342
Joined: August 28th, 2010, 6:25 am
Location: With Waldo.

Thumbs Up given: 18 times
Thumbs Up received: 42 times

Re: Game Maker Questions Topic!!!

Postby AwesomeJRFD » March 14th, 2011, 9:15 pm

Question: What is the difference between Game Maker 7 for the Mac and Game Maker 8 for the PC?
Image
User avatar
AwesomeJRFD
Honorary Member

 
Posts: 836
Joined: November 11th, 2010, 2:06 pm
Location: Sixteenth Dimension: Hyperspace

Runouw Votes Winner
Best Thread (An Explanation of Triggers) in Runouw Votes Summer 2013

Thumbs Up given: 50 times
Thumbs Up received: 38 times

Re: Game Maker Questions Topic!!!

Postby AlucardX60 » March 15th, 2011, 10:34 am

jellonator wrote:@alucard
Code: Select all
move_towards_point(playername.x,y,speedhere)


Doesn't work. The object just moves left till it hits a wall and then right t the other wall across the room.

What I want it to do is aline itself with the Ball objects Y position. but not change it's X position.
User avatar
AlucardX60
Prophet of Shadowsquid

Error contacting Twitter
 
Posts: 1343
Joined: August 10th, 2009, 9:08 am
Location: I'll get back to you on that.

SM63 Level Designer Contest Winner
LDC #4: Halloween

Thumbs Up given: 4 times
Thumbs Up received: 32 times

Re: Game Maker Questions Topic!!!

Postby Jellonator » March 15th, 2011, 3:02 pm

idea;
Code: Select all
y = ball.y

if you want to make it mave at a certain speed,
use alarms
bepis lmao
User avatar
Jellonator
Code: Awesome

Error contacting Twitter
 
Posts: 342
Joined: August 28th, 2010, 6:25 am
Location: With Waldo.

Thumbs Up given: 18 times
Thumbs Up received: 42 times

Re: Game Maker Questions Topic!!!

Postby Koopa Yoshi » March 17th, 2011, 2:07 am

How to make enemies chase player in a maze game

Put the Move Towards or whatever its called, its the 3rd move action in the moves section, put it in the Step event and type obj_player.x and obj_player.y

A Menu

If u cant do it the GML way, do it this way
Create five instances

one named New Game and the other named Continue
the other two is the two buttons' highlighted version
and the control object

put the highlighted New Game and the non-highlighted Continue in the room

when pressing the down button, put this in the New Game object

Change instance continue to highlighted_continue and highlighted_new_game to new_game
put this in the control object when the space key is pressed, just use the check instance action, if highlighted_new_game is equal to 1, go to the first level and vice versa, if highlighted_continue is equal to 1, load the game

simple? this is for those who doesnt want to type gml
and will be harder for more than two options

Pause

deactivate all instances and set notme to true

Code: Select all
{
instance_deactivate_all(true);
instance_create(pausebutton1,x,y)
instance_create(pausebutton2,x,y)
instance_activate_object(pausebutton1);
instance_activate_object(pausebutton2);
}


that will deactivate all instances except for the buttons in the pause menu
when the resume key is pressed, or the resume button is clicked
Code: Select all
instance_activate_all;


i hope this helps. The pause code is not tested, so im not sure it will work


about dvc: show
Mario was trapped in the ancient castle of histories and memories, the past were recorded in the secret chamber of the castle, by entering it will loose the memory cells and release the memories inside, which will bring whoever in the room to past and present, or possibly the future. mario was accidently taken to the past, and will have to find the secret chamber in the castle to return to the present, however, he have three puzzles to solve. that is DOUBLE VISION CHAMBERS

Image
User avatar
Koopa Yoshi
As Ninja As Myst

 
Posts: 171
Joined: January 2nd, 2011, 2:00 pm
Location: The Black Hole so no one can come

Thumbs Up given: 5 times
Thumbs Up received: 5 times

Re: Game Maker Questions Topic!!!

Postby Blablob » March 17th, 2011, 3:01 am

Koopa Parayoshi wrote:How to make enemies chase player in a maze game

Put the Move Towards or whatever its called, its the 3rd move action in the moves section, put it in the Step event and type obj_player.x and obj_player.y

So enemies are not affected by the maze? If they are, then this wouldn't work because the only thing that the enemy knows is to follow the direct coordinates of the player. If there's a maze in his way, that's just not going to work.
User avatar
Blablob
Content for Contempt

 
Posts: 3108
Joined: September 6th, 2009, 3:38 pm
Location: That way

Credit To Team

Thumbs Up given: 67 times
Thumbs Up received: 229 times

Re: Game Maker Questions Topic!!!

Postby Koopa Yoshi » March 17th, 2011, 3:03 am

i only used it in a boss battle though, but i think Step Avoiding action will work


about dvc: show
Mario was trapped in the ancient castle of histories and memories, the past were recorded in the secret chamber of the castle, by entering it will loose the memory cells and release the memories inside, which will bring whoever in the room to past and present, or possibly the future. mario was accidently taken to the past, and will have to find the secret chamber in the castle to return to the present, however, he have three puzzles to solve. that is DOUBLE VISION CHAMBERS

Image
User avatar
Koopa Yoshi
As Ninja As Myst

 
Posts: 171
Joined: January 2nd, 2011, 2:00 pm
Location: The Black Hole so no one can come

Thumbs Up given: 5 times
Thumbs Up received: 5 times

Re: Game Maker Questions Topic!!!

Postby Jellonator » April 9th, 2011, 7:44 pm

a much simpler following object;
Code: Select all
{
  {
    if otherobject.x > x
    x += speedhere
    }
    {
    if otherobject.x < x
    x -= speedhere
  }
}
// this code is more for platformers.
//swap out x with y for y position btw.

or
Code: Select all
dir = point_direction(x,y,otherobject.x,otherobject.y)
x += lengthdir_x(speedhere,dir)
// with y position, change  the above line with this; y += lengthdir_y(speedhere,dir)
// this also slows down as the object draws closer, but speeds up when its farther away in some cases.
//very good for pong games.
bepis lmao
User avatar
Jellonator
Code: Awesome

Error contacting Twitter
 
Posts: 342
Joined: August 28th, 2010, 6:25 am
Location: With Waldo.

Thumbs Up given: 18 times
Thumbs Up received: 42 times

Re: Game Maker Questions Topic!!!

Postby SuperLuigi9624 » June 27th, 2011, 3:56 pm

How do I cut sprites?
Here's some stuff about me, condensed into a spoiler!: show
Hi. I do level reviews and sometimes I might even draw something. Sometimes I might make a level. Sometimes I might make a level with Nan. But I prefer to pretend the old levels I made when I was like... 15 don't exist. Sometimes I even cook! Sometimes I even cook lobsters. Sometimes, people like the lobsters. Sometimes, I ride horses! 100% of the time, I get paid for helping people ride horses! That's what a job is.

LUGGY'S SUPER AMAZING FAQ!!!!!1
What are you doing right now?: show
Doing a level collab with Nan. And also, a super-secret-exciting project. You'll know what it is when it happens.
Who are you?: show
Hi. I do level reviews and sometimes I might even draw something. Sometimes I might make a l- *shot*
No, seriously, who are you?: show
Luigi Fan 64. I just realized when I stopped being a pubescent sack of malaria that that username is the most generic thing since that chair you're sitting in right now.
Why are you so socially awkward?: show
Well, I'm mildly autistic. No, seriously. It's usually not a problem, though.
Why are you acting like we care about this FAQ?: show
Well, you're the person who didn't scroll down to the next post. So clearly, you care at least a little.

Thanks for not immediately scrolling off. Even though I guess I didn't do much to alter your life in this sig. Meh.
User avatar
SuperLuigi9624
As Ninja As Myst

 
Posts: 206
Joined: December 19th, 2010, 11:42 am
Location: Well, I don't know where I am. I know where my hand is, though.

Thumbs Up given: 37 times
Thumbs Up received: 1 time

Re: Game Maker Questions Topic!!!

Postby Koopa Yoshi » June 30th, 2011, 4:01 am

Set the Opacity to 0, then select Replace. Use any tools to erase colors rather than the Eraser tool

Or select an area with the Selecting a region tool, then drag it away to cut it


about dvc: show
Mario was trapped in the ancient castle of histories and memories, the past were recorded in the secret chamber of the castle, by entering it will loose the memory cells and release the memories inside, which will bring whoever in the room to past and present, or possibly the future. mario was accidently taken to the past, and will have to find the secret chamber in the castle to return to the present, however, he have three puzzles to solve. that is DOUBLE VISION CHAMBERS

Image
User avatar
Koopa Yoshi
As Ninja As Myst

 
Posts: 171
Joined: January 2nd, 2011, 2:00 pm
Location: The Black Hole so no one can come

Thumbs Up given: 5 times
Thumbs Up received: 5 times

PreviousNext

Return to Programming