Jump to content


Photo

D&d Actions And Their Code Equivalents


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

#121 Nocturne

Nocturne

    Nocturne Games

  • Administrators
  • 20901 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

#122 Astal

Astal

    GMC Member

  • GMC Member
  • 272 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
  • 751 posts
  • Version:GM:Studio

Posted 29 July 2011 - 11:01 PM

Thanks.
  • 0

#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

#127 Ablach Blackrat

Ablach Blackrat

    GMC Member

  • Retired Staff
  • 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
  • 751 posts
  • Version:GM:Studio

Posted 20 August 2011 - 11:32 PM

I learned a lot!!!
  • 0

#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

#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
  • 356 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

#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

#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

#140 werdna12

werdna12

    GMC Member

  • New Member
  • 69 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

#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

    Call Me Hiz.

  • GMC Member
  • 638 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

#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

#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




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users