Jump to content


Photo

D&d Actions And Their Code Equivalents


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

#101 kupiakos

kupiakos

    Ninjas beat pirates

  • New Member
  • 369 posts

Posted 18 March 2010 - 02:19 PM

I've noticed, at least in the HTML version, that you have the gml equivalent for :) 'Instance Create Moving as:
//No equivalent, but you can use the following code.
ID = instance_create(x,y,object1);
with (ID) motion_set(direction,speed);

However, I think the actual compiler does this:
with (instance_create(x,y,obj)) {motion_set(dir,speed)};

It is one line of code, convenient and uses no variables. I actually had this in my sig for a while.

It is still amazing how much I wish I had these kind of things when I learned gml. As it turns out, the only thing you need to learn gml is logic, the help file, and time for trial and error.
  • 1
---Super Advanced Encryption Script---
Yes, I am aware that Κυριακος is phonetically Kuriakos, but I translated it visually: Kupiakos
ALL NEWBIES MUST READ THIS.
Proud User of Game Maker 7 Pro and 8 Pro.
The BEST FREE hosting website, without any of the rapidshare junk!
When it doubt, read the instructions.
There IS an edit button, you know.
I got bitten by the PYTHON! Did you?

#102 mrcool1997

mrcool1997

    GMC Member

  • New Member
  • 104 posts

Posted 20 March 2010 - 07:48 PM

2d dnd is easy,but in 3d...
  • 0

#103 SpeedingHedgehog

SpeedingHedgehog

    GMC Member

  • New Member
  • 111 posts

Posted 06 May 2010 - 08:33 PM

It's gone.
  • 0
Come check out the Sonic RPG, Town sim, Fighter, Platformer in the Game Ideas fourm, useful input is wanted! See it here!

Avatar removed for file-size violation. Please read and follow the Signature and Avatar Rules.

#104 Yoshi 3000

Yoshi 3000

    GMC Member

  • GMC Member
  • 37 posts

Posted 07 May 2010 - 08:18 AM

The links don't seem to work.

Edited by Yoshi 3000, 07 May 2010 - 08:19 AM.

  • 0

#105 Ablach Blackrat

Ablach Blackrat

    GMC Member

  • GMC Elder
  • 1215 posts
  • Version:GM8

Posted 08 May 2010 - 08:18 PM

My host seems to be down at the moment. If it doesn't come up by tomorrow I'll find a temporary hosting site.
  • 0



#106 ChickenViking

ChickenViking

    GMC Member

  • New Member
  • 368 posts

Posted 04 July 2010 - 12:27 PM

I looked quickly at the html-page for version 7, and it looks pretty good. Thanks, that should make GML so much easier to learn! :D
  • 0

#107 soccer99

soccer99

    Unschooled Developer

  • GMC Member
  • 524 posts

Posted 13 August 2010 - 06:02 AM

The blocks for webpages is wrong now with 8 out.
  • 0
I am a programmer and filmmaker.

Working in Hollywood!

#108 xot

xot

    GMC Dismember

  • GMC Elder
  • 4780 posts
  • Version:GM:Studio

Posted 20 August 2010 - 04:36 PM

In the HTML version of the GM7 document you have:

:GM065: 'Exit Event'
exit;

These are not equivalent. The exit statement only stops the current script or code action, it does not exit the event. Unfortunately, there appears to be no GML equivalent.
  • 0
GMLscripts.com, rise from your grave!

#109 Guest_Davve_*

Guest_Davve_*
  • Guests

Posted 09 September 2010 - 07:09 PM

I would use The Ultimate D&D to GML converter, as this is outdated.

#110 ziberteck

ziberteck

    GMC Member

  • GMC Member
  • 60 posts

Posted 22 September 2010 - 01:11 PM

Wow.. dude this was so useful, I've been getting better with code but I've had to rely on dnd for a few things that I didn't know how to do in code. Awesome man just awesome.
  • 0

#111 _175146

_175146

    GMC Member

  • New Member
  • 72 posts

Posted 11 November 2010 - 12:13 AM

:skull: :wacko: :angry:
z:(
8 VERSION PLEASE!!!!!!!!!!!
  • 0
do ya wanna know a secret....
Spoiler

Projects:
Spoiler

oh, and:
Posted Image

#112 Negative 0 Geez

Negative 0 Geez

    GMC Member

  • New Member
  • 15 posts

Posted 20 December 2010 - 05:22 PM

When is Version 8 coming?
Also, under the "move" section is says to put in direction, but what do I call the directions?
  • 0

#113 flamingfur

flamingfur

    GMC Member

  • New Member
  • 226 posts

Posted 01 January 2011 - 07:24 PM

hey what is the code for the check empty action
  • 0
(\__/) This is Bunny.
(O.o ) Copy Bunny into your signature to help
(> < ) him on his way to world domination!

#114 mcmonkey

mcmonkey

    mcmonkey

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

Posted 05 January 2011 - 02:32 AM

Flamingfur, next time READ the linked-to thing in the first post.

'Check Empty'
if place_free(x,y) {//for solid
//actions here.
}
if !place_empty(x,y) //for all
//actions here.
}


  • 0
Spam prevents spam by spamming the spammers spam bots with spam.
YYGF Archive: http :// mcmonkey . org / yygf/classic/index . html
3794 Post on YYGF before the end.
Game Maker 8 Documentation Online: http :// mcmonkey . org / chmstore/gm8/files/index . html

Disclaimer: I reserve the right to massively exaggerate my points more often than humans take steps on Earth.
Disclaimer: My jokes are poorly planned and may end up looking like insults. They are not.

I finally got a real domain name! http://mcmonkey.org

#115 mazimadu

mazimadu

    GMC Member

  • GMC Member
  • 233 posts

Posted 22 January 2011 - 03:20 AM

A very interesting and useful piece of work. Thank you for providing this, I found it very informative.
  • 0

#116 Catelf

Catelf

    GMC Member

  • GMC Member
  • 516 posts
  • Version:GM8

Posted 02 March 2011 - 05:15 PM

This has been helpful, even if i use GM8.
There are a few ... gliches .... or has seemed so to me, but i think others has pointed it out before me, so i won't do it.
(I tend to forget them, anyway.)
  • 0

#117 DRUGMONSTER

DRUGMONSTER

    GMC Member

  • New Member
  • 1 posts

Posted 14 April 2011 - 03:36 AM

The D&D function "Change Sprite"
Has options to change the sprite, select the subimage and the speed of the sprite.

Your script equivalent to this function is only this: sprite_index = sprite0;

You should include: image_index = 0; for choosing subimage

and also: image_speed = 0.1; for speed of the sprite
(0.1 will make the sprite speed 10 times slower)

:)

Edited by DRUGMONSTER, 14 April 2011 - 04:21 AM.

  • 0

#118 namakemono

namakemono

    GMC Member

  • New Member
  • 31 posts

Posted 13 June 2011 - 03:26 PM

How do you write for the left click when clicking an image, say for clicking the Start Button?
Oh and thanks for putting this up, it's extremely helpful!
  • 0

#119 namakemono

namakemono

    GMC Member

  • New Member
  • 31 posts

Posted 13 June 2011 - 03:40 PM

Never mind my question...figured it out -_-
  • 0

#120 namakemono

namakemono

    GMC Member

  • New Member
  • 31 posts

Posted 01 July 2011 - 04:38 PM

What is, however, the code for Animation End?
  • 0

#121 Nocturne

Nocturne

    Nocturne Games

  • Administrators
  • 24660 posts
  • Version:GM:Studio

Posted 01 July 2011 - 04:43 PM

What is, however, the code for Animation End?


There is no set code for this. You have to check yourself to see if the image_index is equal to or higher than the image_number-1. Why -1? Because if a sprite has 16 sub-images they are numbered from 0 - 15 meaning that sub-image 16 is image_index 15. So...

if image_index >= image_number-1
{
//do something as the animation has ended
}

PS: These questions would be better asked in the Novice Q&A forum as they will get more attention and this topic isn't really the best place for them... Posted Image
  • 0

lz6lxdC.pngd7ZQQ3F.gifFlvJzyf.png

40799.png


#122 Astal

Astal

    GMC Member

  • GMC Member
  • 316 posts

Posted 29 July 2011 - 10:09 PM

The links are down anyone fix em?
  • 0

#123 Terrified Virus

Terrified Virus

    Moderators Plaything

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

Posted 29 July 2011 - 11:01 PM

Thanks.
  • 0

1357275755.png


#124 King Pikmin

King Pikmin

    GMC Member

  • New Member
  • 77 posts

Posted 31 July 2011 - 06:25 PM

Please fix links. Also, mirror isn't working for me.
  • 0

#125 Rossay

Rossay

    GMC Member

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

Posted 03 August 2011 - 02:58 PM

None of the links are working :[
  • 0

#126 jackpotjoker

jackpotjoker

    GMC Member

  • New Member
  • 5 posts

Posted 10 August 2011 - 12:17 AM

darn, someone should fix these.

Anyways, thanks for this awesome resource! That is, when it's back up. :x

Edited by jackpotjoker, 10 August 2011 - 12:19 AM.

  • 0
Posted Image
+++++++++++++++++++++++++++DEADMAN.EXE+++++++++++++++++++++++++++

#127 Ablach Blackrat

Ablach Blackrat

    GMC Member

  • GMC Elder
  • 1215 posts
  • Version:GM8

Posted 14 August 2011 - 12:30 AM

My apologies for the lack of attention to this post. I've updated the first posting with a new link to Media Fire that includes version 6 and 7 in both PDF and HTML format. As for a version 8 I really don't know. I really have little to no time right now so a version 8 will not be forthcoming unless someone else does it.
  • 0



#128 Terrified Virus

Terrified Virus

    Moderators Plaything

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

Posted 20 August 2011 - 11:32 PM

I learned a lot!!!
  • 0

1357275755.png


#129 pronoob16

pronoob16

    rock lobster!!!

  • New Member
  • 148 posts
  • Version:GM8

Posted 28 September 2011 - 11:59 PM

Just download the ultimate dnd to Gml coverter
  • 0

#130 pronoob16

pronoob16

    rock lobster!!!

  • New Member
  • 148 posts
  • Version:GM8

Posted 29 September 2011 - 12:00 AM

Just download the ultimate dnd to Gml coverter
  • 1

#131 Enter_Name_Here

Enter_Name_Here

    GMC Member

  • New Member
  • 109 posts

Posted 09 October 2011 - 11:41 PM

Aww, I wish I'd clicked on this BEFORE learning GML...
  • 0

I'm kind of new to this whole programming thing. Mind helping me out at this topic?


#132 TCosbyJr

TCosbyJr

    GMC Member

  • New Member
  • 4 posts

Posted 18 October 2011 - 04:36 PM

Many thanks for the hard work that went into the files. It truly is a great resource that has helped me fill in some gaps. :thumbsup:
  • 0

#133 KMilz

KMilz

    GMC Member

  • New Member
  • 30 posts
  • Version:GM8

Posted 17 December 2011 - 04:03 PM

Found exactly what I needed, a GML version of the 'Create Moving Instance' D&D button. Thanks for the great tutorial it's exactly as it needs to be.

Edit: Well, found what I needed, but it's not working how I want it to. Any chance someone could better explain how that function works with GML? I'm decent at coding, but when it comes to 'for' and 'with' statements, I just can't rap my mind around how they work. It suggests you perform:

ID = instance_create(x,y,object1);
with (ID) motion_set(direction,speed);

So I have ID = 0 in the 'Create' event, and this code in a collision event, with my object, direction and speed plugged in. I was expecting it to create my moving object, but it's not doing anything. Any help would be greatly appreciated.

Re-Edit: Yeah, I figured it out. Problem was, I was trying to set the direction to a local variable on the first object, not the object being created. Thanks though, if you were planning on helping! Great tutorial!

Edited by KMilz, 17 December 2011 - 04:30 PM.

  • 0

#134 lucb1e

lucb1e

    GMC Member

  • GMC Member
  • 13 posts
  • Version:GM8

Posted 27 December 2011 - 05:00 PM

Why don't you just post it here instead of forcing everyone to download 4 versions of it before they can even view it? (2 x pdf + 2 x html). I mirrored it here so you don't have to download the HTML version at least, but if you just put it in the post that'd be most ideal.

Edited by lucb1e, 27 December 2011 - 05:01 PM.

  • 0

#135 GS-games

GS-games

    Creative

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

Posted 29 December 2011 - 04:24 PM

Check out this program.
Link to The ultimate D&D to GML converter
Works great!
  • 1

Hi there!

Twitter: https://twitter.com/GabrielSandsted

Website (under development) gsgames.net: http://gsgames.net/ 

Facebook page: https://www.facebook.com/gsgames.net 

tx5PmL9.png


#136 jmorrissey

jmorrissey

    GMC Member

  • New Member
  • 23 posts

Posted 05 February 2012 - 07:16 PM

It pays to read the forums!

I'm a recent convert to GML versus the D&D side of Game Maker and I kept hitting a wall of things I could do in D&D but not in GML. I was actually going to post if anyone had created an equivalents file that broke down what was what. Sure enough, the first post in the GML Novice forum was exactly what I wanted. Granted, all of you know that already because you are reading this... but I just felt the need to say that this is awesome and THANKS.

As far as an 8.1 version of this doc, can anyone point to any new features in 8.1 that aren't covered in the 7.0 version. I'd be more than happy to try my hand at updating to the newer version. I've found this is the best way to learn for me, is to attempt to explain it to others. I just need to know what's changed.

Also, getting a version of this doc up on the wiki wouldn't be a bad idea either (does anyone actually use that?).

Thanks again,
Joe
  • 1

#137 torigara

torigara

    GMC Member

  • GMC Member
  • 6507 posts

Posted 16 February 2012 - 02:26 PM

Hi,

Although this is a great guide, I recently noticed that it sometimes makes novice users to use "action" functions unintentionally.

With the latest version of guide, each action is basically mentioned twice. The first time with the proper (documented) function. The second is with the "action" one. Two descriptions look visually similar, so novice users will hardly notice the difference nor realize the fact that there are two different places of description.

People don't usually read this sort of document in the order. Instead, they search around the document, quickly and randomly flipping through pages to find the function they need. The consequence is, they will find an "action" function in half a chance and think that it is the correct one to use, overlooking the caution located at the middle.

I wish some improvement made to eliminate the confusion. For instance, how about making the font and icons tiny in the part of "Action functions?" It will give people the feeling that it isn't the main article of the document but an additional note. It will also make the description of each action close together, making people more likely notice the caution at the beginning of the section. Or, how about separate the section of "Action functions" into another document file?

Edited by torigara, 17 February 2012 - 12:57 AM.

  • 2

#138 greep

greep

    Menaces with Spikes

  • GMC Member
  • 2398 posts
  • Version:GM7

Posted 12 March 2012 - 09:21 AM

Seconded. Or perhaps even better, just make two separate downloads, one for the regular functions and one for the actions functions (preferably with a "don't bother downloading the latter" note)
  • 0
GMC_Jam_11_SmallBanner_zps69ed8fdf.png
Spoiler

#139 greep

greep

    Menaces with Spikes

  • GMC Member
  • 2398 posts
  • Version:GM7

Posted 14 March 2012 - 03:03 AM

... are these bots or something? And if so what is the point?
  • 0
GMC_Jam_11_SmallBanner_zps69ed8fdf.png
Spoiler

#140 werdna12

werdna12

    GMC Member

  • GMC Member
  • 74 posts
  • Version:GM8

Posted 23 March 2012 - 03:36 PM

its not letting me download, i click it and it just opens a new blank page.
  • 0

#141 lucb1e

lucb1e

    GMC Member

  • GMC Member
  • 13 posts
  • Version:GM8

Posted 24 March 2012 - 11:19 AM

The download still works for me, but like I said on the previous page, here is a mirror:

http://lucb1e.com/gm...d/egmc_dnd2gml/
  • 0

#142 graves23

graves23

    Artist Solo Queue

  • New Member
  • 35 posts
  • Version:GM8

Posted 04 April 2012 - 07:41 PM

Helpfull ^^

Edited by graves23, 04 April 2012 - 07:42 PM.

  • 0
//I love blender <3

#143 3141592526

3141592526

    GMC Member

  • GMC Member
  • 222 posts

Posted 03 May 2012 - 07:00 PM

I don't know if you guys want but you can post this link at the top of this post, it's the d&d to code on my site

Edited by 3141592526, 03 May 2012 - 07:02 PM.

  • 0

#144 Conan87

Conan87

    GMC Member

  • GMC Member
  • 124 posts

Posted 15 June 2012 - 07:07 AM

The download still works for me, but like I said on the previous page, here is a mirror:

http://lucb1e.com/gm...d/egmc_dnd2gml/


Exactly what I use, its very helpful to teach you how to use GML more effectively when you master D&D
  • 0

#145 Hiznopellagio

Hiznopellagio

    Future Game Designer

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

Posted 23 June 2012 - 06:21 AM

The download still works for me, but like I said on the previous page, here is a mirror:

http://lucb1e.com/gm...d/egmc_dnd2gml/

thanks dude :thumbsup: ! hope i can make a tutorials :confused: .
  • 0

1oIXiuX.png


#146 lucb1e

lucb1e

    GMC Member

  • GMC Member
  • 13 posts
  • Version:GM8

Posted 23 June 2012 - 02:56 PM

Glad my mirror is of use :smile:!

Edited by lucb1e, 23 June 2012 - 02:57 PM.

  • 0

#147 Scoutaloo

Scoutaloo

    GMC Member

  • GMC Member
  • 49 posts
  • Version:GM8

Posted 01 July 2012 - 02:19 AM

Thanks so much for this. This is helping me a lot.
  • 2
Posted Image
Spoiler

#148 wdalphin2

wdalphin2

    GMC Member

  • New Member
  • 83 posts

Posted 16 August 2012 - 07:01 PM

I actually spent several pages trying to figure out how any of this tied into Dungeons & Dragons. :medieval:

I haven't been on here in a while. :whistle:
  • 1




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users