Pages: 1 2
Author Topic: Stuph  (118,919 Views)
Offline (Unknown gender) Josh @ Dreamland

Prince of all Goldfish
Developer
Joined: Feb 2008
Posts: 2,950
View profile
Reply #15 Posted on: August 02, 2011, 02:50:10 PM
Ah, yes, I forgot about that extension system. TGMG was working on the selector for it... I haven't heard back from him.
Offline (Unknown gender) luiscubal

Member
Joined: Jun 2009
Posts: 452
View profile
Reply #16 Posted on: August 02, 2011, 03:30:23 PM
@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.
Offline (Unknown gender) Josh @ Dreamland

Prince of all Goldfish
Developer
Joined: Feb 2008
Posts: 2,950
View profile
Reply #17 Posted on: August 03, 2011, 06:02:31 AM
No, it's not that hard. It just requires me picking a spot to put that function table, and generating it at compile time.
Offline (Unknown gender) skarik

Member
Joined: Jul 2008
Posts: 46
View profile WWW
Reply #18 Posted on: August 05, 2011, 02:49:17 AM
Would it take long to do such?
Offline (Unknown gender) skarik

Member
Joined: Jul 2008
Posts: 46
View profile WWW
Reply #19 Posted on: August 20, 2011, 05:44:59 PM
EVEEEEEEEEEENNNNNNNNNNNNNNTTTTTTTTTTTTTTTTTTTTTTTTTTT_USSSSSSSSSSSSSSSSSSSSEEEEEEEEEEEEEEEEERRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR
Offline (Unknown gender) Josh @ Dreamland

Prince of all Goldfish
Developer
Joined: Feb 2008
Posts: 2,950
View profile
Reply #20 Posted on: August 20, 2011, 06:12:48 PM
I'm getting the impression you want event_user.
Offline (Unknown gender) luiscubal

Member
Joined: Jun 2009
Posts: 452
View profile
Reply #21 Posted on: August 20, 2011, 11:57:55 PM
@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. ;)
Offline (Unknown gender) Josh @ Dreamland

Prince of all Goldfish
Developer
Joined: Feb 2008
Posts: 2,950
View profile
Reply #22 Posted on: August 21, 2011, 02:47:51 PM
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.
Offline (Unknown gender) luiscubal

Member
Joined: Jun 2009
Posts: 452
View profile
Reply #23 Posted on: August 21, 2011, 03:12:00 PM
Quotepolymorphic 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.
Offline (Unknown gender) Josh @ Dreamland

Prince of all Goldfish
Developer
Joined: Feb 2008
Posts: 2,950
View profile
Reply #24 Posted on: August 22, 2011, 06:11:10 AM
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.
Offline (Unknown gender) skarik

Member
Joined: Jul 2008
Posts: 46
View profile WWW
Reply #25 Posted on: August 25, 2011, 08:16:45 PM



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