Jump to content


Photo

D&d Actions And Their Code Equivalents


  • This topic is locked This topic is locked
147 replies to this topic

#1 Ablach Blackrat

Ablach Blackrat

    GMC Member

  • Retired Staff
  • 1215 posts
  • Version:GM8

Posted 20 October 2007 - 04:07 PM

I've finally gotten around to redoing the Drag and Drop to GML tutorial completely for Version 7. This tutorial will show you the Drag and Drop icons and their related GML coding.

Also included in this file is a complete listing of the Action Functions that Game Maker uses. These are the direct coding of the Drag and Drop Icons and, in some cases, may be easier to use then the related code. I should stress though that Action functions are entirely unsupported in Game Maker, both in the Game Maker Manual and in the Coding Window of the Object Properties dialogue. You can still use them, but they will not appear below. Action Functions should not really be used by beginners; they should learn the actual code. Once you have a grasp of GML, Action Functions will be helpful.

Please download all version in one file from the following link....

http://www.mediafire...a1um5u6fkc21cn8


Edited by Ablach Blackrat, 14 August 2011 - 12:27 AM.

  • 14

#2 computerwis

computerwis

    GMC Member

  • New Member
  • 201 posts

Posted 20 October 2007 - 04:33 PM

Is there going to be an html version later on?
  • 0

#3 Ablach Blackrat

Ablach Blackrat

    GMC Member

  • Retired Staff
  • 1215 posts
  • Version:GM8

Posted 20 October 2007 - 07:36 PM

Is there going to be an html version later on?

<{POST_SNAPBACK}>


The HTML version for both Ver 7 and Ver 6 have been put up. Sorry, I forgot about those.
  • 0

#4 Nijg

Nijg

    Caleb Cuzner

  • GMC Member
  • 1118 posts
  • Version:GM6

Posted 20 October 2007 - 10:19 PM

Is the version 7 one at all different than the version 6 one?
  • 0

#5 Ablach Blackrat

Ablach Blackrat

    GMC Member

  • Retired Staff
  • 1215 posts
  • Version:GM8

Posted 21 October 2007 - 06:03 PM

Is the version 7 one at all different than the version 6 one?

<{POST_SNAPBACK}>


The icon names have been changed to match Ver 7, some code has been cleaned up and improved thanks to several members, as well as the inclusion of the Action Codes.
  • 0

#6 Daniel-Dane

Daniel-Dane

    GMC Member

  • New Member
  • 3581 posts

Posted 21 October 2007 - 06:47 PM

I believe miscolouring is a low priority for you.
  • 0

#7 Ablach Blackrat

Ablach Blackrat

    GMC Member

  • Retired Staff
  • 1215 posts
  • Version:GM8

Posted 22 October 2007 - 12:40 AM

I believe miscolouring is a low priority for you.

<{POST_SNAPBACK}>


I though you were pointing out the glaring spelling error. I'll fix the colouring as well.
  • 0

#8 Daniel-Dane

Daniel-Dane

    GMC Member

  • New Member
  • 3581 posts

Posted 22 October 2007 - 11:06 AM

There was a spelling error as well? Well, if that was the case I would have made a nice, thin, red box around it. :(
  • 0

#9 xtreme0ninja

xtreme0ninja

    The Xtreme

  • New Member
  • 684 posts

Posted 23 October 2007 - 10:26 PM

spelling error? you mean where it says

they're are

which basicly means they are are? if thats not what ur talking about, im smart. if it is, im still smart. :P

Xtreme0 :D
  • 0

#10 Nijg

Nijg

    Caleb Cuzner

  • GMC Member
  • 1118 posts
  • Version:GM6

Posted 25 October 2007 - 02:29 PM

I don't know if this is in the gm7 one too, but I have discovered in the gm6 one, for the 'When an object is at a position,' it is not only position_meeting, position_meeting is only if you have an actual coordinates. It would be place_meeting is you put into the dnd option: OBJ.x, OBJ.y. So it is position_meeting and place_meeting.
  • 0

#11 shane121

shane121

    GMC Member

  • New Member
  • 7 posts

Posted 27 October 2007 - 07:40 AM

what a great tutorial!!!
very helpful
two thumbs up :( :o :o


:) registered
  • 0

#12 Kobb

Kobb

    Crash Master

  • New Member
  • 91 posts

Posted 29 October 2007 - 10:43 PM

Thanks! I still find myself using the d@d icons alot, so this will help!
  • 0

#13 melon

melon

    www.kieranmillar.com

  • New Member
  • 274 posts

Posted 31 October 2007 - 11:29 AM

Those action codes are very interesting. I assume that when you make something using D&D, what actually happens when GM compiles the exe is turns each of them into their own codes and makes a script out of each object. Of course, I probably should have guessed it did that anyway, but I imagine that it would compile these codes, and so technically it would be faster in some cases to use D&D.

Am I right? I always wondered if GM compiled code that you write or if it's interpretted. I believe it's an odd mixture of both.
  • 0

#14 jabelar

jabelar

    GMC Member

  • New Member
  • 2980 posts

Posted 01 November 2007 - 07:09 PM

EDIT: Ignore my post. I just "discovered" that the d&d actions are really used inside a a with() statement, because they all seem to take "self", "other" or object as a parameter.

And I also see that you indeed mentioned that at the front of the document. :)

Edited by jabelar, 01 November 2007 - 11:45 PM.

  • 0

#15 Dark_Mage

Dark_Mage

    GMC Member

  • New Member
  • 54 posts

Posted 11 November 2007 - 03:07 AM

Any chance you could make it in a word document?
  • -1

#16 a2h

a2h

    GMC Member

  • New Member
  • 382 posts

Posted 13 November 2007 - 09:11 AM

Good on you for the update, I now use one less D&D (even though I mostly use code xD)

action_bounce(true,0);

And there's not much GML I have to learn left, just motion_set and all that... =P

Great tutorial, used it as a reference ever since it was just a simple pdf.

Edited by anger2headshot, 13 November 2007 - 09:12 AM.

  • 0

#17 Ablach Blackrat

Ablach Blackrat

    GMC Member

  • Retired Staff
  • 1215 posts
  • Version:GM8

Posted 14 November 2007 - 02:30 AM

Any chance you could make it in a word document?

<{POST_SNAPBACK}>


Any reason you need it as a Word document? Anything in the PDF or HTML can be copied.
  • 0

#18 Meowgoocat

Meowgoocat

    GMC Member

  • GMC Member
  • 246 posts

Posted 01 December 2007 - 08:24 PM

Cool, it's fixed now.

Edited by Meowgoocat, 07 December 2007 - 11:21 PM.

  • 0

#19 K3fka

K3fka

    Game Designer

  • New Member
  • 561 posts
  • Version:GM:Studio

Posted 01 December 2007 - 09:37 PM

All the links are broken ;)
  • 0

#20 tristiano77

tristiano77

    GMC Member

  • GMC Member
  • 349 posts
  • Version:Unknown

Posted 14 December 2007 - 01:21 AM

by making a script called action_game_end() and having the contents be show_message("wo0t"); you see that when you add a game end action it must run the action_game_end() function, but if you change that script to game_end the d&d action still works therefore the function action_game_end is compiled separately from game_end
  • 0

#21 Nelson

Nelson

    GMC Member

  • New Member
  • 508 posts

Posted 29 December 2007 - 12:53 AM

The same nothing different. When is somebody going to do a Document on the Action codes. Any body can look in the help file and find this info. The actions codes are not in the help file so they are what will make this better not what people can find in the help file. Come on somebody put stuff that will actually help people
  • 0

#22 Big J

Big J

    GMC Member

  • GMC Member
  • 2841 posts
  • Version:GM8.1

Posted 29 December 2007 - 08:02 AM

I found an typo error (in the HTML version at least):

Draw Health
action_draw_health(x,y,x1,y,1,back color, bar color);

It should be something like this
action_draw_health(x1,y1,x2,y2,back color, bar color);

Also, it says the Game Maker Web site is:

http://www.gamemaker.nl/

Shouldn't it be

http://www.yoyogames.com/ ?

Edited by Big J, 29 December 2007 - 08:05 AM.

  • 0

#23 ugly_dwarf2

ugly_dwarf2

    GMC Member

  • GMC Member
  • 381 posts

Posted 02 January 2008 - 05:36 PM

Thanks. That will help me out alot. :D
  • 0

#24 Shadow X

Shadow X

    GMC Member

  • New Member
  • 275 posts

Posted 03 January 2008 - 12:58 AM

Thank you very much, Ablach blackrat.
  • 0

#25 Foxx

Foxx

    GMC Member

  • GMC Member
  • 886 posts
  • Version:GM:Studio

Posted 04 January 2008 - 11:18 AM

links are broken.... or not working?
  • 0

#26 awasteoflife

awasteoflife

    GMC Member

  • New Member
  • 92 posts

Posted 07 January 2008 - 05:39 PM

how do you do relative to?
  • 0

#27 rokuken

rokuken

    GMC Member

  • New Member
  • 364 posts

Posted 08 January 2008 - 10:59 PM

This is a WONDERFUL thing you did. But, can you tell me how can I get this same helpfull equivalent thingy for GM 5.2. See, I already started doing my game for like 2 years ago, so I'm not starting over again with a newer version. The game's pretty big & good & starting over again & fixing ALL the LOOONG codes, I don't think so...
  • 0

#28 OmegaZero

OmegaZero

    GMC Member

  • New Member
  • 122 posts

Posted 09 January 2008 - 01:24 AM

Very useful!

Thanks a lot! :P
  • 0

#29 Rybo5000

Rybo5000

    GMC Member

  • New Member
  • 423 posts

Posted 12 January 2008 - 02:36 PM

I don't think I've commented but I think I should, to thank you.

Since starting GML I've always found this very useful, and thanks alot.

:P,
Rybo
  • 0

#30 black ice00100

black ice00100

    GMC Member

  • New Member
  • 323 posts

Posted 02 February 2008 - 10:12 PM

The set background code never works
  • 0




1 user(s) are reading this topic

1 members, 0 guests, 0 anonymous users