Discord
Login
Community
DARK THEME

Reduce the amount of typing by replacing commonly typed long functions

If, like me, you find that you are constantly typing out many of the commonly used long functions then a simple trick is to re-assign them to something shorter.

Just some examples:

txt=screen.drawText
spr=screen.drawSprite
scale=screen.setDrawScale
anchor=screen.setDrawAnchor
alpha=screen.setAlpha

So, instead of:

screen.drawSprite("ball",x,y,w,h)

You can now type:

spr("ball",x,y,w,h)

Well, I feel stupid... I didn't know this and this is super useful. Thanks!

Post a reply

Progress

Status

Preview
Cancel
Post
Validate your e-mail address to participate in the community