00:00
00:00
MSGhero
Free time is nice time.

Nick @MSGhero

Age 30, Male

Somewhere in the North

Joined on 12/15/10

Level:
17
Exp Points:
2,848 / 3,210
Exp Rank:
19,854
Vote Power:
5.85 votes
Rank:
Police Sergeant
Global Rank:
6,515
Blams:
456
Saves:
937
B/P Bonus:
12%
Whistle:
Normal
Trophies:
6
Medals:
661
Supporter:
11y 4m 23d
Gear:
3

Comments

Is the first "dark magic" link just a class that acts as a container? With (what looks like) a tree structure inside it?

It's not a class you use directly, but it's the base class of how layouts are arranged. You define layouts in XML, and you can use relative widths and heights ("make a button 50% as wide as its container"). A bunch of relative dimensions are a pain to deal with, but this class does it.

(side note: is the second "dark magic" link the equivalent of eval() or something? If so, could any game-breaking events occur due to actions triggered by chests in a level editor?)

Yes and yes. You can have it run any code you like, and yeah that code could have issues. I tell it who the NPC is and do like "speakingTo.playAnim('chest_open')" and "Service.inv.acquireItem('potion')" kinds of things, but yeah execute any code.

Update! Woohoo! Now that there'll be plenty more screenshots to show off in our new builds, I can get back to spamming new stuff on Twitter.

Basically.

Good post, congrats on graduating and making the code work.

Thanks, hopefully will have a demo at the end of the month.