Jump to content


Photo

D&d Actions And Their Code Equivalents


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

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

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

  • New Member
  • 710 posts

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

#31 JDD

JDD

    GMC Member

  • New Member
  • 1 posts

Posted 19 February 2008 - 08:35 PM

I found on the html version of D&D to gml 7 main2 tab the change sprite icon is different than in the game.
  • 0

#32 kake_fisk

kake_fisk

    GMC Member

  • New Member
  • 2391 posts
  • Version:GM7

Posted 24 February 2008 - 01:25 PM

in the open webpage you have a spelling error.
you need to have http:// you had http//
  • 0

#33 Nelson

Nelson

    GMC Member

  • New Member
  • 508 posts

Posted 28 February 2008 - 03:05 AM

Same stuff is in the help file. I Suggest to use the actions codes for the D&D because that is what the actions codes are. You will need to do some testing and stuff but if you do then you will learn about stuff also.

Somebody ask what is faster the D&D or GML. Some say GML is Faster. some say D&D is faster some say they are the same because D&D is just GML code.

I say D&D is faster. Let me explain why. If you use theses codes that Ablach blackrat has in this tutorial. These codes are a lot longer than the codes the D&D icons uses. The D&D uses the action codes and not the codes in this tutorial or the help file.

So if you use these codes then Game Maker will take longer to go through codes that is longer than the codes that is in the D&D codes which is the Action codes. But there is no help on them so you have to work them functions out yourself. I done a few myself and they worked fine.
  • 0

#34 Big J

Big J

    GMC Member

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

Posted 28 February 2008 - 10:52 AM

D&D might be a little bit faster, but the speed difference is negligible.

The action_* functions are completely undocumented in the help file, so I discourage their use. However, if it helps a new user see the connection between D&D and GML, then so be it.
  • 0

#35 Nelson

Nelson

    GMC Member

  • New Member
  • 508 posts

Posted 28 February 2008 - 03:32 PM

Everybody has their opinion on this but most want to learn things and codes that will be faster in game play is what is at hand. But like you and I both said. the are not in the help file or any other file. I did a few my self and will try to work out a few more. I am slightly retarded and I worked out a few my self. So if I can do it a little then I know some that is smarter than me should be able to do them. I will try to see what I can do then maybe redo my D&D to code converter. I did a few in it already. and will try to work out a few more
  • 0

#36 kake_fisk

kake_fisk

    GMC Member

  • New Member
  • 2391 posts
  • Version:GM7

Posted 28 February 2008 - 03:35 PM

If you make a lib for your own use, you will learn gml and it will also be faster to just drop the code you want into the object :ph34r:
  • 0

#37 Nelson

Nelson

    GMC Member

  • New Member
  • 508 posts

Posted 28 February 2008 - 09:40 PM

still will want to use the action codes for the lib. But just the same. Most people just want to learn so the lib will be something that is worked out for them.

I will try to workout some of the codes myself and then maybe post them here or just redo my D&D to code converter.
  • 0

#38 Virus2_0

Virus2_0

    Penguin Programmer

  • New Member
  • 476 posts

Posted 05 March 2008 - 03:24 AM

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 :unsure:

<{POST_SNAPBACK}>



Guiys thatis not speling... its grammmer. goshget it it rihgt. im perfecT.
  • 0

#39 AC-426

AC-426

    GMC Member

  • New Member
  • 400 posts

Posted 14 March 2008 - 03:37 PM

Thanks a lot, Ablach Blackrat. Your efforts are very appreciated.


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

Where in the official GM7 help file do you find GML codes that are equivalent of the D&D actions?

Somebody ask what is faster the D&D or GML [...]
I say D&D is faster. Let me explain why. If you use theses codes that Ablach blackrat has in this tutorial. These codes are a lot longer than the codes the D&D icons uses. The D&D uses the action codes and not the codes in this tutorial or the help file.

So if you use these codes then Game Maker will take longer to go through codes that is longer than the codes that is in the D&D codes which is the Action codes.

Non-sense. You don't actually think that Game Maker leaves the GML code as you originally wrote it and that it keeps interpreting it each frame, do you? I haven't seen GM's source code, but I'm pretty sure the GML code is converted to something GM can read much quicker. Whether you use GML or D&D, they'll probably end up looking exactly the same.

For example:

action_move(90, 3) => [1, 90, 3];
action_move_point(10, 20, 5) => [2, 10, 20, 5];
and so on...

Lame example. But still, it would be A LOT faster than parsing strings every frame.
  • 0

#40 Nelson

Nelson

    GMC Member

  • New Member
  • 508 posts

Posted 14 March 2008 - 05:01 PM

You will need to look at the action codes and see what is shorter. Action codes can be shorter than the codes found in the help file. people can come up with argument after argument about what is faster and what is not. If a code is. It is suppose to be Drag and drop to code conversion which is wrong cause the D&D doesn't use the codes found in the help file. It uses the action codes.


Example

Create Moving'
//No equivalent, but you can use the following code.
ID = instance_create(x,y,object1);
with (ID) motion_set(direction,speed);


No equivalent. wrong the equivalent is

action_create_object_motion(Object,x,y,speed,direc
tion)

Edited by Nelson, 14 March 2008 - 05:22 PM.

  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users