Pages: « 1 2
  Print  
Author Topic: Stuph  (Read 6222 times)
Offline (Male) Josh @ Dreamland
Reply #15 Posted on: August 02, 2011, 09:50:10 AM

Prince of all Goldfish
Developer
Location: Pittsburgh, PA, USA
Joined: Feb 2008
Posts: 2958

View Profile Email
Ah, yes, I forgot about that extension system. TGMG was working on the selector for it... I haven't heard back from him.
Logged
"That is the single most cryptic piece of code I have ever seen." -Master PobbleWobble
"I disapprove of what you say, but I will defend to the death your right to say it." -Evelyn Beatrice Hall, Friends of Voltaire
Offline (Unknown gender) luiscubal
Reply #16 Posted on: August 02, 2011, 10:30:23 AM
Member
Joined: Jun 2009
Posts: 452

View Profile Email
@Josh - (about user events) How else would you implement virtual functions in Game Maker?
But, really, user events *can't* be that hard to make. I mean, how do you implement create/step/etc.? Can't you just make user_event0 to N, and then create a table of function pointers?

In fact, I only user_event for constant events, so in my case, defining user_event as a C macro would probably work, even if it'd only be a short-term solution.
Logged
Offline (Male) Josh @ Dreamland
Reply #17 Posted on: August 03, 2011, 01:02:31 AM

Prince of all Goldfish
Developer
Location: Pittsburgh, PA, USA
Joined: Feb 2008
Posts: 2958

View Profile Email
No, it's not that hard. It just requires me picking a spot to put that function table, and generating it at compile time.
Logged
"That is the single most cryptic piece of code I have ever seen." -Master PobbleWobble
"I disapprove of what you say, but I will defend to the death your right to say it." -Evelyn Beatrice Hall, Friends of Voltaire
Offline (Unknown gender) skarik
Reply #18 Posted on: August 04, 2011, 09:49:17 PM

Member
Joined: Jul 2008
Posts: 46

View Profile WWW Email
Would it take long to do such?
Logged
~~
Offline (Unknown gender) skarik
Reply #19 Posted on: August 20, 2011, 12:44:59 PM

Member
Joined: Jul 2008
Posts: 46

View Profile WWW Email
EVEEEEEEEEEENNNNNNNNNNNNNNTTTTTTTTTTTTTTTTTTTTTTTTTTT_USSSSSSSSSSSSSSSSSSSSEEEEEEEEEEEEEEEEERRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR
Logged
~~
Offline (Male) Josh @ Dreamland
Reply #20 Posted on: August 20, 2011, 01:12:48 PM

Prince of all Goldfish
Developer
Location: Pittsburgh, PA, USA
Joined: Feb 2008
Posts: 2958

View Profile Email
I'm getting the impression you want event_user.
Logged
"That is the single most cryptic piece of code I have ever seen." -Master PobbleWobble
"I disapprove of what you say, but I will defend to the death your right to say it." -Evelyn Beatrice Hall, Friends of Voltaire
Offline (Unknown gender) luiscubal
Reply #21 Posted on: August 20, 2011, 06:57:55 PM
Member
Joined: Jun 2009
Posts: 452

View Profile Email
@Josh Really? What gave you that idea?
I believe what skarik really asked for is for an ENIGMA setting to activate case insensitivity in the parser, and to allow repeated characters to behave as a single one. ;)
Logged
Offline (Male) Josh @ Dreamland
Reply #22 Posted on: August 21, 2011, 09:47:51 AM

Prince of all Goldfish
Developer
Location: Pittsburgh, PA, USA
Joined: Feb 2008
Posts: 2958

View Profile Email
Probably.

Anyway, what I haven't mentioned is that I'm dropping event_user in exchange for polymorphic member scripts. It'll be backwards-compatible, but there's a wait on that until Ism gets back and implements EGM.

You'll be happy to know it's at the top of my when-EGM-is-done list.
Logged
"That is the single most cryptic piece of code I have ever seen." -Master PobbleWobble
"I disapprove of what you say, but I will defend to the death your right to say it." -Evelyn Beatrice Hall, Friends of Voltaire
Offline (Unknown gender) luiscubal
Reply #23 Posted on: August 21, 2011, 10:12:00 AM
Member
Joined: Jun 2009
Posts: 452

View Profile Email
Quote
polymorphic member scripts.
Actually, if done right, that could actually be better than user events, since referencing virtual methods by name is more readable than by some obscure number.
However, the convenience of having it all in the object editor is pretty nice.
In the end, whether it sucks or rocks all depends on the implementation.
Logged
Offline (Male) Josh @ Dreamland
Reply #24 Posted on: August 22, 2011, 01:11:10 AM

Prince of all Goldfish
Developer
Location: Pittsburgh, PA, USA
Joined: Feb 2008
Posts: 2958

View Profile Email
It will be in the object editor. "It'll be backwards-compatible." I'll basically replace all user events with these member scripts under predictable names, have event_perform call those, and that'll be that.
Logged
"That is the single most cryptic piece of code I have ever seen." -Master PobbleWobble
"I disapprove of what you say, but I will defend to the death your right to say it." -Evelyn Beatrice Hall, Friends of Voltaire
Offline (Unknown gender) skarik
Reply #25 Posted on: August 25, 2011, 03:16:45 PM

Member
Joined: Jul 2008
Posts: 46

View Profile WWW Email



as long as I can give my objects their own scripts I can call at my whim I'm happy
Logged
~~
Post made August 28, 2011, 05:37:06 AM was deleted at the author's request.
Pages: « 1 2
  Print