Jump to content


Photo

Ds_point


  • Please log in to reply
12 replies to this topic

#1 Kyle_Solo

Kyle_Solo

    GMC Member

  • GMC Member
  • 1071 posts
  • Version:Unknown

Posted 29 December 2007 - 05:19 PM

Overview:
This is a data structure for storing points. (The download includes two gex files, one for 2d, one for 3d.) I made it to use in one of my other projects and it seemed useful enough to post here.

Extension Webpage

Edited by Kyle_Solo, 08 January 2008 - 04:24 PM.

  • 0

#2 ditdingiscool

ditdingiscool

    GMC Member

  • New Member
  • 335 posts

Posted 29 December 2007 - 06:24 PM

hmm, you know i have seen this before, oh yeah! it was in the help-file under ds_grid
  • 0

#3 Kyle_Solo

Kyle_Solo

    GMC Member

  • GMC Member
  • 1071 posts
  • Version:Unknown

Posted 29 December 2007 - 11:02 PM

Completely different. Can you insert and delete rows in a ds_grid? No, you can't. Try thinking before you speak next time. A grid is like a 2d array, while this structure is more like a list.
  • 0

#4 TheOmega

TheOmega

    GMC Member

  • New Member
  • 88 posts

Posted 30 December 2007 - 09:56 AM

You need to add x,y,z support for 3D support, so you can store a 3D mesh in this DS_point structure.
  • 0
Loves his girlfriend Melissa <3

#5 leif902

leif902

    GreenMan Games

  • New Member
  • 748 posts

Posted 30 December 2007 - 06:03 PM

I love this sort of thing, it's great to see people on the GMC designing new data structures with Game Maker. Good job :GM069:
  • 0
Sam Whited (Leif902)
YoYo Games Wiki | SamWhited.com (blog)

#6 Kyle_Solo

Kyle_Solo

    GMC Member

  • GMC Member
  • 1071 posts
  • Version:Unknown

Posted 31 December 2007 - 02:54 AM

3d version is done and included in the download. Oh, and I put the source for both in too. Pretty simple, really.

Edited by Kyle_Solo, 31 December 2007 - 02:57 AM.

  • 0

#7 Flamer_Shaftglutton

Flamer_Shaftglutton

    GMC Member

  • GMC Member
  • 304 posts

Posted 11 January 2008 - 06:10 AM

So what exactly is the purpose of this, as opposed to the other ds_ functions? I'm downloading it anyway, because you've released nothing but gold. But I want to know what purpose you had in mind when you made this.
  • 0

#8 Kyle_Solo

Kyle_Solo

    GMC Member

  • GMC Member
  • 1071 posts
  • Version:Unknown

Posted 11 January 2008 - 05:24 PM

I needed to manage points for my gesture system. I could have used two ds_lists, but that got really complicated really fast, so I made this.
Thanks for the compliment!

Edited by Kyle_Solo, 11 January 2008 - 05:26 PM.

  • 0

#9 Creative Fusion

Creative Fusion

    GMC Member

  • New Member
  • 55 posts

Posted 11 January 2008 - 10:54 PM

Good, but what would be the advantage of using this over Seeker's Point Magic scripts, which have the same functions, only more? I guess being an extension is the only difference.... You got the idea from his work?

Edited by Creative Fusion, 11 January 2008 - 10:56 PM.

  • 0

#10 Kyle_Solo

Kyle_Solo

    GMC Member

  • GMC Member
  • 1071 posts
  • Version:Unknown

Posted 12 January 2008 - 04:30 AM

Actually, I didn't even know his had something similar until you said that. I happened to need this for something I'm working on. I guess the advantage would be that this is based on lists while his is based on a grid...

This also has less overhead... (I'm reaching here)
  • 0

#11 Creative Fusion

Creative Fusion

    GMC Member

  • New Member
  • 55 posts

Posted 15 January 2008 - 05:04 PM

Ah, I see. It has a system for manipulating lists also (same operations as the grid scripts), but only the list named "global.Gesturelist". If you turn that global variable into a list id argument in all of the gesture scripts, you could use any list of your own. That's what you're working on, right? A new version of your gesture system? Can't wait to see it!

Edited by Creative Fusion, 15 January 2008 - 05:06 PM.

  • 0

#12 Kyle_Solo

Kyle_Solo

    GMC Member

  • GMC Member
  • 1071 posts
  • Version:Unknown

Posted 15 January 2008 - 05:06 PM

Don't hold your breath. It could be some time before I finish the new version up, but it should be worth the wait.
  • 0

#13 xot

xot

    GMC Dismember

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

Posted 17 January 2008 - 08:48 AM

Great idea.
  • 0
GMLscripts.com, rise from your grave!

If any of my posts contain broken images or links, I can probably supply them for you. PM with a link to the post.