Josh @ Dreamland
|
|
Reply #15 Posted on: August 02, 2011, 09:50:10 am |
|
|
Prince of all Goldfish
Location: Pittsburgh, PA, USA Joined: Feb 2008
Posts: 2950
|
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
|
|
|
luiscubal
|
|
Reply #16 Posted on: August 02, 2011, 10:30:23 am |
|
|
Joined: Jun 2009
Posts: 452
|
@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
|
|
|
|
Josh @ Dreamland
|
|
Reply #17 Posted on: August 03, 2011, 01:02:31 am |
|
|
Prince of all Goldfish
Location: Pittsburgh, PA, USA Joined: Feb 2008
Posts: 2950
|
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
|
|
|
|
|
Josh @ Dreamland
|
|
Reply #20 Posted on: August 20, 2011, 01:12:48 pm |
|
|
Prince of all Goldfish
Location: Pittsburgh, PA, USA Joined: Feb 2008
Posts: 2950
|
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
|
|
|
|
Josh @ Dreamland
|
|
Reply #22 Posted on: August 21, 2011, 09:47:51 am |
|
|
Prince of all Goldfish
Location: Pittsburgh, PA, USA Joined: Feb 2008
Posts: 2950
|
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
|
|
|
luiscubal
|
|
Reply #23 Posted on: August 21, 2011, 10:12:00 am |
|
|
Joined: Jun 2009
Posts: 452
|
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
|
|
|
|
Josh @ Dreamland
|
|
Reply #24 Posted on: August 22, 2011, 01:11:10 am |
|
|
Prince of all Goldfish
Location: Pittsburgh, PA, USA Joined: Feb 2008
Posts: 2950
|
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
|
|
|
|
Post made August 28, 2011, 05:37:06 am was deleted at the author's request.
|
|