RPG Maker Forums

for example i create a class:

class Myclass

blablabla

end

then i dup it using

Default_Myclass = Myclass.dup

then i do edit to Myclass

class Myclass

another blablabla

end

then i dup it using

Another_Myclass = Myclass.dup

then i want in game to switch Myclass between Default_Myclass and Another_Myclass using:

Myclass = Default_Myclass.dup

or

Myclass = Another_Myclass.dup

it's working nicely... but the question is.... will this dangerous??

i'm concerned about the garbage collection. because i didn't destroy the class. (any way to destroy the class cleanly?)

Latest Threads

Latest Profile Posts

Frostorm wrote on Featherbrain's profile.
Hey, so what species are your raptors? Any of these?
... so here's my main characters running around inside "Headspace", a place people use as a safe place away from anxious/panic related thinking.
Stream will be live shortly! I will be doing some music tonight! Feel free to drop by!
Made transition effects for going inside or outside using zoom, pixi filter, and a shutter effect
I have gathered enough feedback from a few selected people. But it is still available if you want to sign up https://forums.rpgmakerweb.com/index.php?threads/looking-for-testers-a-closed-tech-demo.130774/

Forum statistics

Threads
105,992
Messages
1,018,189
Members
137,771
Latest member
evoque
Top