I liked that syntax! Would be really legit if you can have "if" and "for" looping in the frames! As for the functions, I have no idea how stuff works for GM, but try looking into Named Parameters. Here is an example of that with Python:
then you can do:
That will not only make it more flexible for coders to give the paras in any order, but will also allow them to leave out the unnecessary tags as well. In your case, the coder will have to fill everything and with order; which won't be very efficient when you come to add your own tags.
Edit: No one line code tag O:
Code:
def itr( **args):
if args.has_key( "x:" ):
assignto_x(args["x:"])
else:
assignto_x(defaultxvalue)
if args.has_key( "y:" ):
assignto_y(args["y:"])
else:
assignto_y(defaultyvalue)
if args.has_key( "w:" ):
assignto_w(args["w:"])
else:
assignto_w(defaultwvalue)
if args.has_key( "h:" ):
assignto_h(args["h:"])
else:
assignto_h(defaulthvalue)
return
Code:
itr(y=10, x=3, w=30, h=20)
Edit: No one line code tag O:
A-Engine: A new beat em up game engine inspired by LF2. Coming soon
A-Engine Dev Blog - Update #8: Timeout