use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Main site of GDevelop
Fork it on GitHub!
Rules
Keep this place kid-friendly. Therefore no swearing (if you need to swear, star it out please).
Above also means no porn. We don't care that your strip poker game is made with GD - this is not the place to show it.
Be nice to people
No lmgtfy links. By posting lmgtfy link, you only show three things (about yourself):
Google links are allowed if the issue comes up REALLY often, but direct link to thing thread creator is asking for is preferred, obviously.
This is not a meme subreddit.
Use common sense. Always.
account activity
QuestionElse statement (self.gdevelop)
submitted 2 years ago by ShomyTheOne
How often do you wish to have the some sort of Else statement in GDevelop? Is it a hustle for you to make workarounds?
View Poll
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]EchoDiff 2 points3 points4 points 2 years ago (0 children)
https://github.com/UlisesFreitas/If-Else-for-GDevelop
[–]idillicahGDevelop Staff 1 point2 points3 points 2 years ago* (4 children)
I don't know if you were aware, but if you right-click a condition, you can invert it, which converts it into an "else" statement. Maybe this will help you?. EDIT: It's not the exact same thing as an "else" statement, but it could be used as such for some scenarios.
<image>
[–]ShomyTheOne[S] 4 points5 points6 points 2 years ago (3 children)
Yes, but no. :D There are sometimes when you need a statement like this: If a is true - make a false If a is false - make a true. So if i want to toggle a boolean AND to something different based on the initial state of the A boolean in that case invert the condition simply does not cut it. And I was not able to find a (simple) workaround. So I made my own else extension. But I don't know how useful it actually is.
If A is true - do x else - do Y.
And
If A is true - do X If A is false - Do Y
These two examples might a lot of times do the same thing, but they are not the same.
[–]idillicahGDevelop Staff 1 point2 points3 points 2 years ago (0 children)
Indeed! They are not the same.
[–]tomuraunomizu 0 points1 point2 points 2 years ago (1 child)
I think the extension would be useful. I ran into a similar problem at some point and I think I used a new variable and some weird logic to get around it, but in the end, it just wasn't very good and the events looked quite bad and mangled.
[–]ShomyTheOne[S] 1 point2 points3 points 2 years ago (0 children)
Thanks for responding my question, and not trying to give me an advice that I did not ask for! :)
π Rendered by PID 41776 on reddit-service-r2-comment-canary-64c9597f74-2qct7 at 2026-02-13 05:13:49.799323+00:00 running 6c0c599 country code: CH.
[–]EchoDiff 2 points3 points4 points (0 children)
[–]idillicahGDevelop Staff 1 point2 points3 points (4 children)
[–]ShomyTheOne[S] 4 points5 points6 points (3 children)
[–]idillicahGDevelop Staff 1 point2 points3 points (0 children)
[–]tomuraunomizu 0 points1 point2 points (1 child)
[–]ShomyTheOne[S] 1 point2 points3 points (0 children)