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

tint_fade(t, r, g, b, a) is misconfigured #3148

Open
6 tasks done
Alasdairbugs opened this issue Dec 16, 2024 · 0 comments
Open
6 tasks done

tint_fade(t, r, g, b, a) is misconfigured #3148

Alasdairbugs opened this issue Dec 16, 2024 · 0 comments
Labels

Comments

@Alasdairbugs
Copy link
Contributor

SuperTux Version

v0.6.3-1507-gc2e6b766d

System Information

win 11 64 bit

Expected Behavior

as per documentation tint_fade follows t, rgba

Actual Behavior

this is not the case, instead:

  • the variable for time also controls blue
  • the variable for blue also controls red

so its t+b, r, g, r+b, a

Steps To Reproduce Actual Behavior

  • get a tilemap, place some lightmap white tiles, for ease' sake.
  • get a lever, on switch is .tint_fade(0, 1, 1, 1, 1);
  • make the off switch something else, but you will see that the first variable definitely controls at least TIME, because if you do 5, 0, 1, 1, 1 then it slowly changes colour
  • and if you do 0, 1, 1, 1, 1 it becomes yellow, which means absence of blue. so it controls blue and time

repeat for the other mistake, doing 1, 1, 1, 0, 1 makes it go green. now green is the absence of two colours, red and blue. so the fourth variable also controls two things.

Additional Information

No response

Guidelines For Reporting Issues

  • I have read https://github.com/SuperTux/supertux/blob/master/CONTRIBUTING.md#bug-reports.
  • I have verified this isn't an issue that's already been reported.
  • I have verified this isn't a discussion, or an issue about a crash or a feature request, but rather an actual bug ─ that is, the game did something not intended.
  • I have verified this issue is not about wrong translations (use Transifex for those), or anything unsupported (e.g. third-party add-ons).
  • In this report, I have only included details about one (1) bug.
  • If I make a mistake while submitting this report, I agree to use the "Edit" feature to correct it, instead of closing this issue and opening a new one.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant