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
Parameter conditionInverted always true for object's conditions #13
Comments
I've found how to change that in GDCore/Events/EventsCodeGenerator.cpp but I wonder if the condition need to invert itself the result if the "conditionInverted" is used in it. |
For objects conditions, the predicat (=the expression inside the if) used to pick objects is simply negated (by adding a ! in the generated code). What is your object condition for which you need to do something special? Why does the default behavior is not satisfaying? |
If the condition is inverted, I need to pick the object that are not colliding with the tilemap : that's a very specific condition : a bit like the collision condition. Maybe I need to make it free ? |
I think that the condition is better as a free condition indeed. (Note that if you're dealing with two list of objects, as classical conditions collisions, you may take a look at ObjectTools.cpp. It has a TwoObjectListsTest function that launch a function on each pair of objects in the list and that you should reuse. But this is only if you deal with two objects list, that's maybe not your problem here :) ) |
I saw that function (which seem quite conplicated inside) but I need to 2014-08-30 17:34 GMT+02:00 Florian Rival notifications@github.com:
Victor LEVASSEUR |
I'm currently working on a solution to let the dev pass as many extra params as he wants. ;) |
Cache Three materials Approved-by: Davy Hélard
Hi,
When I'm trying to use that special code-only parameter, my function always get "true" even if the condition isn't inverted. Notice that it's an object's condition (not like the standard collision condition which is a free condition).
The text was updated successfully, but these errors were encountered: