Comments (6)
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.
from gdevelop.
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?
from gdevelop.
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 ?
from gdevelop.
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 :) )
from gdevelop.
I saw that function (which seem quite conplicated inside) but I need to
pass 3 integers to the "test function" but there is only 1 "extra
parameter" (row, columns and layer of the Tile).
2014-08-30 17:34 GMT+02:00 Florian Rival [email protected]:
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 :) )—
Reply to this email directly or view it on GitHub
#13 (comment).
Victor LEVASSEUR
[email protected]
from gdevelop.
I'm currently working on a solution to let the dev pass as many extra params as he wants. ;)
Will soon post a PR.
from gdevelop.
Related Issues (20)
- Crash while using an editor HOT 1
- Mouse Pointer Lock or TimeDelta() bug in Mac browser run games when scenery is moving.
- GDevelop exports corrupted AAB file HOT 2
- Hint is over the JS editor when expanded. HOT 1
- iOS crash "evaulating new THREE_ADDONS.EffectComposer" HOT 3
- eventsFunctionContext.getArgument() doesn't work with "Objects" argument type HOT 2
- An error occured in the Instance editor ... HOT 1
- Typo for 3D stuff HOT 1
- Raycast collision bug,skipping first collision iteration HOT 1
- GDevelop branding should be optional on leaderboards
- Layer effects not working properly on Mobile.
- Improve undeclared variables tip in the variable editor HOT 1
- Crash while using an editor
- tauri
- Using "Take screenshot" action doesn't capture the 3D layers.
- Add better structured variable support to DialogueTree extension HOT 2
- Theatre.js as part of timeline editor for GDevelop HOT 7
- Share button error on Web Version when exporting HOT 2
- It is not possible to change the location of all windows (Objects, groups of objects, layers, etc.) HOT 2
- New Hero In Town Music Asset Pack
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gdevelop.