Jump to content


Photo

D&d Actions And Their Code Equivalents


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

#51 Green_Sky

Green_Sky

    GMC Member

  • New Member
  • 70 posts

Posted 03 June 2008 - 09:17 PM

with create moving you can use with (instance_create(x,y,object1) ) motion_set(direction,speed); because instance_create returns the id of the new object
  • 0
play my game:
Micrals

#52 goreforcexgames

goreforcexgames

    GMC Member

  • New Member
  • 594 posts

Posted 08 June 2008 - 03:25 AM

oh this is great, it helps me out a lot! :P
  • 0



I r teh pwnz u nubcakez.

#53 bobo7264

bobo7264

    GMC Member

  • New Member
  • 30 posts

Posted 23 June 2008 - 03:50 PM

1)

Hi

I don't understand how to use "action_color();"

I tried several ways :

1. action_color(#E9CEA9);
2. action_color(E9CEA9);
3. action_color(233, 206, 169);

but I get an error. dry.gif

Please help me.


Doesn't gm prefer c_<color> to col,orc,ode or C070UR?

2) What's the GML for relative? I.E if object exists at -32,32 relative.
  • 0

#54 Dangerous_Dave

Dangerous_Dave

    GMC Member

  • Global Moderators
  • 9425 posts
  • Version:Unknown

Posted 24 June 2008 - 01:58 AM

1. I don't know what this guide teaches, but I disaprove of anything starting with action_*. draw_set_color(c_red) will set the drawing colour to red, however I'm not entirely sure what action_color(...) is actually supposed to do.
2. If object exists at x-32, y+32
  • 0

#55 GrayAvocado

GrayAvocado

    A big bad Wolf

  • GMC Member
  • 1226 posts

Posted 25 June 2008 - 12:59 PM

1)

Hi

I don't understand how to use "action_color();"

I tried several ways :

1. action_color(#E9CEA9);
2. action_color(E9CEA9);
3. action_color(233, 206, 169);

but I get an error. dry.gif

Please help me.


Doesn't gm prefer c_<color> to col,orc,ode or C070UR?

2) What's the GML for relative? I.E if object exists at -32,32 relative.

make_color_rgb?


x-32, y+32

Edited by -wolfprograming-, 25 June 2008 - 12:59 PM.

  • 0

#56 Littlefire

Littlefire

    GMC Member

  • New Member
  • 22 posts

Posted 17 July 2008 - 04:55 AM

thank you thank you thank you thank you thank you!!!!!!!!!!!! :huh: :) ::lmao::
  • 0
i am a happy birthday boy.
check out me pivot vids on youtube!!!
My pivot vids


Cna yuo raed tihs? Olny 55% of plepoe can.
I cdnuolt blveiee taht I cluod aulaclty uesdnatnrd waht I was rdanieg. The phaonmneal pweor of the hmuan mnid, aoccdrnig to a rscheearch at Cmabrigde Uinervtisy, it dseno't mtaetr in waht oerdr the ltteres in a wrod are, the olny iproamtnt tihng is taht the frsit and lsat ltteer be in the rghit pclae. The rset can be a taotl mses and you can sitll raed it whotuit a pboerlm. Tihs is bcuseae the huamn mnid deos not raed ervey lteter by istlef, but the wrod as a wlohe. Azanmig huh? yaeh and I awlyas tghuhot slpeling was ipmorantt!
fi yuo cna raed tihs, palce it in yuor siantugre.< Apperantly the guy who wrote this, couldn`t read it himself!

#57 bobo7264

bobo7264

    GMC Member

  • New Member
  • 30 posts

Posted 21 July 2008 - 06:14 PM

What is not?
For example,

[codebox]if variable =0 NOT{
score += 10000000000000000000000000000000000000000000000000
}[/codebox]

Edited by bobo7264, 21 July 2008 - 06:14 PM.

  • 0

#58 Dangerous_Dave

Dangerous_Dave

    GMC Member

  • Global Moderators
  • 9425 posts
  • Version:Unknown

Posted 22 July 2008 - 05:09 AM

not is the logical negator. It makes true false and false true. So, your example corrected:
if not (variable == 0)
{
  score += 10000000000000000000000000000000000000000000000000
;
}

That code will add 1000000...0000000 to the score if the variable "variable" is not equal to 0.
  • 0

#59 Rexhunter99

Rexhunter99

    GMC Member

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

Posted 29 July 2008 - 08:08 AM

not is the logical negator. It makes true false and false true. So, your example corrected:

if not (variable == 0)
{
  score += 10000000000000000000000000000000000000000000000000
;
}

Not true, Not is a name for !, basically, Not checks to see if the variable is equal to the value if it isnt (doesnt matter what it is) then the following code will execute.
  • 0

Posted Image EpicZen, Games, Tutorials and more!


#60 pokeboy

pokeboy

    GMC Member

  • New Member
  • 1 posts

Posted 29 July 2008 - 12:45 PM

I cant get it to work :D :)
  • 0

#61 Dangerous_Dave

Dangerous_Dave

    GMC Member

  • Global Moderators
  • 9425 posts
  • Version:Unknown

Posted 31 July 2008 - 09:04 AM

Not true, Not is a name for !, basically, Not checks to see if the variable is equal to the value if it isnt (doesnt matter what it is) then the following code will execute.

I like you, you're funny :P

! is also the logical negator.

Read this. Halfway down the page you will find the example using !, but you should read the whole thing. Go on, I dare you :D
  • 0

#62 Recreate

Recreate

    Furry

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

Posted 31 July 2008 - 09:11 PM

d&d Contains gml ...Right?
  • 0

If the post that you are reading was created prior to 2011. For the safety of the general public, It is not to be regarded under any circumstances.
Please don't ask me to join your group at anything.


#63 Southman

Southman

    I simply am not here

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

Posted 11 August 2008 - 09:43 PM

d&d Contains gml ...Right?

what else would it be? C++?
  • 0

#64 3dman101

3dman101

    GMC Member

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

Posted 20 August 2008 - 05:54 PM

WOW, thanx! this will really help me as well as my other clueless friends!
  • 0

#65 Nelson

Nelson

    GMC Member

  • New Member
  • 508 posts

Posted 23 August 2008 - 10:27 PM

d&d Contains gml ...Right?



D&D is the action codes that isn't in the help file. So to find GML code in the help file will not be the same coding as the coding the D&D Icons use.

GML in the help file can be longer at times than the D&D Icons so my argument us always to try to experiment with the Action codes as well cause some are actually shorter than the Codes found in the help file.
  • 0

#66 Dangerous_Dave

Dangerous_Dave

    GMC Member

  • Global Moderators
  • 9425 posts
  • Version:Unknown

Posted 24 August 2008 - 05:59 AM

GML in the help file can be longer at times than the D&D Icons so my argument us always to try to experiment with the Action codes as well cause some are actually shorter than the Codes found in the help file.

Thats like saying we should use this code:
set_variables();

Instead of this:

x=1;
y=2;
z=3;
a=4;
b=5;
c=6;

When set_variables is the name of a script with this in it:
x=1;
y=2;
z=3;
a=4;
b=5;
c=6;

Either way works, and none is better than the other, besides saving a few bytes of code.
  • 0

#67 Nelson

Nelson

    GMC Member

  • New Member
  • 508 posts

Posted 24 August 2008 - 07:32 PM

GML in the help file can be longer at times than the D&D Icons so my argument us always to try to experiment with the Action codes as well cause some are actually shorter than the Codes found in the help file.

Thats like saying we should use this code:
set_variables();

Instead of this:

x=1;
y=2;
z=3;
a=4;
b=5;
c=6;

When set_variables is the name of a script with this in it:
x=1;
y=2;
z=3;
a=4;
b=5;
c=6;

Either way works, and none is better than the other, besides saving a few bytes of code.



Like I said some D&D are shorter. Some Gml codes in the help file can be shorter but most the time the D&D is just one line of coding
  • 0

#68 Diptoman

Diptoman

    GMC Member

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

Posted 13 September 2008 - 11:29 AM

But it actually takes MORE time to drag an icon every time than having the 'Insert code' action open and typing in it.
However, I think D&D is better in resource handling. Resource conflicts don't occur in D&D.

Edited by dmsuper, 13 September 2008 - 05:20 PM.

  • 0

#69 Southman

Southman

    I simply am not here

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

Posted 13 September 2008 - 12:44 PM

I rarely use D&D, but if I do it is this :D
  • 0

#70 Diptoman

Diptoman

    GMC Member

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

Posted 13 September 2008 - 05:21 PM

I rarely use D&D, but if I do it is this :)

Haha, why? Don't know the GML equivalent!?
  • 0

#71 Dangerous_Dave

Dangerous_Dave

    GMC Member

  • Global Moderators
  • 9425 posts
  • Version:Unknown

Posted 14 September 2008 - 01:54 AM

However, I think D&D is better in resource handling. Resource conflicts don't occur in D&D.

When I first read that, it sounded like you thought D&D handled system resources better... but I get you now.

The resource conflicts don't occur in D&D because D&D uses id's to refer to everything, while in code we use constants with these variables to make it easier to know what we are talking about.
  • 0

#72 xtreme0ninja

xtreme0ninja

    The Xtreme

  • New Member
  • 684 posts

Posted 14 September 2008 - 03:13 PM

this is the most superly usefull thing on earth lol, tyvm

~xtreme0 :)
  • 0
I just can't stick with one game long enough to finish it...

My current project is a sort of open-world Pacman RPG. I am currently working on it solo, with the suggestions of a few friends, but one of them might actually help code it (he needs to learn to use GM first though XD).

Though it seems I will not be able to work on it next week, since TERRARIA IS COMING OUT EARLY!!!! HELL YEAH!

#73 Southman

Southman

    I simply am not here

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

Posted 14 September 2008 - 11:15 PM

I rarely use D&D, but if I do it is this :snitch:

Haha, why? Don't know the GML equivalent!?

ha aha haaa funny :)
  • 0

#74 Nelson

Nelson

    GMC Member

  • New Member
  • 508 posts

Posted 17 September 2008 - 02:27 AM

I rarely use D&D, but if I do it is this :)

Haha, why? Don't know the GML equivalent!?

ha aha haaa funny :)



Not really funny cause this although is very helpful to some people isn't GML equivalent.

It is more of a translation to D&D to GML.
  • 0

#75 iluvfuz

iluvfuz

    GMC Member

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

Posted 12 October 2008 - 06:42 PM

Be sure to check GML Buddy out for quick translations; also, 3D commands are in progress, but I need your help to provide ideas for the attribute:
GML Buddy
  • 0

#76 Tayrawr

Tayrawr

    GMC Member

  • New Member
  • 7 posts

Posted 02 November 2008 - 08:45 AM

Thanks for this, helps me understand GML better, and is really nice to have, considering i'm new and have only made a few decent games.
  • 0

#77 icecream841

icecream841

    GMC Member

  • New Member
  • 230 posts

Posted 11 November 2008 - 03:50 PM

this is the greatest every tim i use it i learn more and become better

thx
  • 0
I am the Creator of Luthivian

3D oh ya :D

#78 Scippi

Scippi

    GMC Member

  • New Member
  • 33 posts

Posted 18 November 2008 - 09:22 PM

This is brilliant, thanks blackrat ;)
  • 0

#79 Jaboi

Jaboi

    GMC Member

  • New Member
  • 174 posts

Posted 21 November 2008 - 05:42 AM

This will be incredibly helpful. Awesome tutorial man.
  • 0

#80 erthgy

erthgy

    GMC Member

  • New Member
  • 1718 posts

Posted 23 December 2008 - 09:18 PM

This is an interestingly handy little notebook for programming purposes (especially if you can't find your answers in the help file). Just thought I'd add that in. Good job Ablach Blackrat.
  • 0
"I'M BAAAACK WHATCHA GONNA DO NOW?"

#81 iluvfuz

iluvfuz

    GMC Member

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

Posted 17 January 2009 - 12:49 AM

This is pretty cool. Some people were talking about a GML pdf file, and I guess this is the one.


Edit: Just noticed this, and was thinking it played a similar role as a program I made when I was a newbie (more than I am right now!). You can check it out if you want in my signature.

Edited by iluvfuz, 17 January 2009 - 12:50 AM.

  • 0

#82 distortedgamer

distortedgamer

    GMC Member

  • New Member
  • 63 posts

Posted 12 July 2009 - 09:17 PM

Very nice!! Thank you so much for this! I was getting pretty good at GML a long time ago and then stopped for a year or so. Now trying to get back into it, I forgot the correct syntax.... this saved the day! Thanks again!
  • 0

#83 kake_fisk

kake_fisk

    GMC Member

  • GMC Member
  • 2392 posts
  • Version:GM7

Posted 13 July 2009 - 12:07 AM

What happened to these GML smart codes?
  • 0

#84 cheeserules

cheeserules

    GMC Member

  • GMC Member
  • 570 posts

Posted 13 August 2009 - 01:38 AM

Thanks, this is useful! I never really figured out a convenient coding substitution for the ^_^ D&D option.
  • 0
SOMETHING WITTY!

#85 laurencn106

laurencn106

    GMC Member

  • New Member
  • 15 posts

Posted 02 September 2009 - 11:01 AM

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

#86 Shadow X

Shadow X

    GMC Member

  • New Member
  • 275 posts

Posted 03 September 2009 - 04:14 AM

I still use this guide. Still learning GML. After all these years. But I'm progressing well. This guide is so useful. Once again, thanks, Ablach Blackrat. By the way, is it just me, or were a whole lot of pages worth of posts removed from this topic?
  • 0
I'm remaking a Japanese-only NES game. More details coming soon. Which means in a few years. Deal with it.

#87 gogoboy4444

gogoboy4444

    GMC Member

  • New Member
  • 171 posts

Posted 10 September 2009 - 11:51 AM

Account has been suspended 0_o?

Edited by gogoboy4444, 10 September 2009 - 11:51 AM.

  • 0
Jesus = win

#88 Joshyboshy09

Joshyboshy09

    GMC Member

  • Banned Users
  • 53 posts

Posted 15 September 2009 - 07:54 AM

All the links are broken :)

Did you try save target as?

Super Mario Bros - Darkyoshi Mario Engine +5000 Downloads!
My Engine If Possibly The BEST Mario Engine And Also Things Never Seen On An Engine Before!!!

#89 GameMakerAnonymous

GameMakerAnonymous

    GMC Member

  • Banned Users
  • 36 posts

Posted 03 October 2009 - 05:05 AM

I Have The Same Problem But I Tried Save Target As And It Worked!

#90 hannan1994

hannan1994

    GMC Member

  • New Member
  • 13 posts

Posted 29 October 2009 - 05:14 AM

Thnx for all the links especially for the link you've given for game maker 6.
Thanks!!!!!!! :(
  • 0

#91 Davve

Davve

    GMC Member

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

Posted 15 November 2009 - 04:23 PM

You can use this program to translate any number of Drag and drop actions into GML:
The ultimate D&D to GML converter
  • 0

1Amdi.png Swxmo.png RDHEw.png 17Ezd.png


#92 Melchirisimus

Melchirisimus

    GMC Member

  • New Member
  • 1 posts

Posted 16 November 2009 - 11:30 AM

Thanks for this thread. It is really useful. ;) ;) :)
  • 0
The moon is smaller than earth and much harder to reach.
I'm a rather big fan of Fallschirmspringen (and I'm trying to speak German every now and than...)

#93 wolforce

wolforce

    GMC Member

  • New Member
  • 38 posts

Posted 15 December 2009 - 12:34 PM

if place_meeting(x,y,object0) {
//actions here.
}
  • 0
Posted Image

#94 James K

James K

    GMC Member

  • New Member
  • 232 posts

Posted 20 December 2009 - 12:46 AM

All links are down. That's sad :whistle:
  • 0
For my games check out this website!:
www.playjamesgames.com


#95 BAALIAL

BAALIAL

    GMC Member

  • New Member
  • 6 posts

Posted 22 December 2009 - 06:21 AM

none of these links work for me nor dose sae target as perhapes some one could messege me a phresh link
  • 0

#96 Pesmerga

Pesmerga

    GMC Member

  • New Member
  • 152 posts

Posted 03 January 2010 - 01:29 PM

Please refresh the link. This is essential info and very useful for beginners.

edit: ok html seems to work. The links didn't work when I tried yesterday.

Edited by Pesmerga, 03 January 2010 - 02:36 PM.

  • 0

#97 kdixon24

kdixon24

    GMC Member

  • New Member
  • 82 posts

Posted 07 February 2010 - 06:53 PM

:) Am I the only one who read the title and thought we were talking about Dungeons & Dragons? :(
  • 0
P.M. me if you have a question, I'll try to help if I can.

#98 Davve

Davve

    GMC Member

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

Posted 07 February 2010 - 08:14 PM

:) Am I the only one who read the title and thought we were talking about Dungeons & Dragons? :(

Yup.
  • 0

1Amdi.png Swxmo.png RDHEw.png 17Ezd.png


#99 Jimmynator

Jimmynator

    GMC Member

  • New Member
  • 178 posts

Posted 19 February 2010 - 08:56 PM

I CAN'T DOWNLOAD THIS FROM ANY LINK!!!! :) :D :whistle:
  • 0
Play my game! (Featured in Yoyogames)
Posted Image

#100 Kyon

Kyon

    Creator of Dirkels

  • GMC Member
  • 4247 posts
  • Version:Unknown

Posted 10 March 2010 - 08:49 PM

This is awesome you know,
it helps all the drag and drop users.


Reaction #100!!
  • 0

My name is Kyon Edelenbosch, I Design, Program and Animate.

Learn more about Dirkels at http://kecreations.forumotion.com/





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users