Charas-Project

  • Home
  • Help
  • Search
  • Calendar
  • Login
  • Register
*
Please login or register.

Login with username, password and session length
 

News:

New forum theme up and running!



  • Charas-Project »
  • Game Creation »
  • Requests »
  • Tutorials »
  • Game Maker code snippets that DONT use GML
« previous next »
  • Print
Pages: [1]

Author Topic: Game Maker code snippets that DONT use GML  (Read 4752 times)

Offline Vlad Shadeu

  • Menace
  • Zealot
  • *
  • Posts: 540
  • Oh to be dumb again.
Game Maker code snippets that DONT use GML
« on: August 02, 2009, 08:26:46 PM »
http://www.mediafire.com/?mm2jzzjimnm

It's useful for beginners. This will be on YoYoGames once they virus scan it but you guys get first look. Its just a few snippets of code ideal for people looking to make things with Game Maker. its a work in progress, this wont be the only one. If you have some suggestions that dont require GML, i'll do my best to add them. If you make something with it, credit would be nice but is not necessary, and i would REALLY like a link to it so i can see it.
Logged

Offline fruckert

  • Star-Star-Star-Star
  • Sage
  • *
  • Posts: 8,148
  • Not intended for public consumption
Re: Game Maker code snippets that DONT use GML
« Reply #1 on: August 02, 2009, 08:38:23 PM »
I take it you made this, and it's not just a compilation of other peoples things?
Logged
Quote
Ellie: I had a slice of ham in my hand. I was going to drop it, so I slapped it hard. It attached itself to the wall

Offline Vlad Shadeu

  • Menace
  • Zealot
  • *
  • Posts: 540
  • Oh to be dumb again.
Re: Game Maker code snippets that DONT use GML
« Reply #2 on: August 02, 2009, 08:41:49 PM »
All the coding is mine, yes.
Logged

Offline fruckert

  • Star-Star-Star-Star
  • Sage
  • *
  • Posts: 8,148
  • Not intended for public consumption
Re: Game Maker code snippets that DONT use GML
« Reply #3 on: August 02, 2009, 09:02:57 PM »
Well, it's definitely alright for a DnD tutorial, although the shruiken room is kinda buggy.
Probably would've been a good time to use a mask for the collisions, because when they collided with the wall, sometimes it wouldn't stop.
A square mask would've fixed that.
Logged
Quote
Ellie: I had a slice of ham in my hand. I was going to drop it, so I slapped it hard. It attached itself to the wall

Offline Vlad Shadeu

  • Menace
  • Zealot
  • *
  • Posts: 540
  • Oh to be dumb again.
Re: Game Maker code snippets that DONT use GML
« Reply #4 on: August 02, 2009, 09:04:48 PM »
Be honest, i dont understand how to do masks XD.
This is actually more of a learning experience for me than it is for anyone downloading it, but some of the stuff i did is cool.
Logged

Offline Vlad Shadeu

  • Menace
  • Zealot
  • *
  • Posts: 540
  • Oh to be dumb again.
Re: Game Maker code snippets that DONT use GML
« Reply #5 on: August 02, 2009, 09:55:10 PM »
Oh, by the way, is it possible to calculate the direction of one point as relative to an object with drag and drop?
Logged

Offline fruckert

  • Star-Star-Star-Star
  • Sage
  • *
  • Posts: 8,148
  • Not intended for public consumption
Re: Game Maker code snippets that DONT use GML
« Reply #6 on: August 02, 2009, 10:06:22 PM »
distance_to_object(obj)
Just use that in the test variable tile.
Logged
Quote
Ellie: I had a slice of ham in my hand. I was going to drop it, so I slapped it hard. It attached itself to the wall

Offline Vlad Shadeu

  • Menace
  • Zealot
  • *
  • Posts: 540
  • Oh to be dumb again.
Re: Game Maker code snippets that DONT use GML
« Reply #7 on: August 02, 2009, 10:20:27 PM »
actually, i meant the opposite of what you gave me the variable for. and i need direction, not distance. and i'm trying to avoid using a variable test, thats what most of the other examples used. Basically what i'm trying to do is make a compass that points to your objective/whatever, using, of course, the mouse_x and mouse_y variables. heres how it looks right now.

Step Event:
Change Sprite:
sprite: Compass Rose
subimage:point_direction(0,0,follow.x,follow.y)/10
speed:0
Logged

  • Print
Pages: [1]
« previous next »
  • Charas-Project »
  • Game Creation »
  • Requests »
  • Tutorials »
  • Game Maker code snippets that DONT use GML
 

  • SMF 2.0.10 | SMF © 2015, Simple Machines
  • XHTML
  • 2O11
  • RSS
  • WAP2
  • Simple Machines Forum