Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lua Cleanup #15705

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
Open

Lua Cleanup #15705

wants to merge 9 commits into from

Conversation

LarryFrosty
Copy link
Contributor

@LarryFrosty LarryFrosty commented Oct 15, 2024

(Yes, this does fix setObjectCamera and supposedly setBlendMode)

  • Added new function getObjectLoop to LuaUtils (shortcut to splitting the variable and stuff)
  • Majority of the Lua functions that used to split the object tags will now use getObjectLoop. Some functions that didn't originally split will use it for convenience
  • removeFromGroup now uses Reflect for groups to fix sprite group errors
  • doTweenColor will now use the sprite's current alpha for the new color IF no alpha value is provided on the hex color. Should fix transparent sprites alpha going back to 1
  • On colorFromString, if an alpha value is provided on the hex code (and starts with 0x), then it will subtract 8 instead of 6 to account for alpha
  • Changed leObj's type to FlxBasic on (set/get)ObjectOrder
  • Fixed startTween not holding the original tag
  • Added antialiasing as a Lua variable
  • luaSoundExists now formats the tag
  • loadSong now mutes opponent vocals

@ender69funk
Copy link

yo thank u larry

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants