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)
- Tiled Sprite Randomization Feature (Randomized Rotation and Offset combined with blending) a la Construct 3's r321 update. HOT 2
- Limitation in Physics Engine Speed HOT 1
- Simpler way to center origin sprite point HOT 3
- Add sorting for assets bin HOT 1
- Snapping objects in editor
- Corrupted value in Scene editor's tooltip right after instance deletion HOT 1
- Fullscreen Detection broken HOT 4
- Adding the ability to specify Cordova and NPM plugin parameters in extension dependencies HOT 1
- Platformer Deacceleration shows the wrong tooltip HOT 1
- High-Speed Collision Detection Limitation HOT 3
- Crash while using an editor
- Toggle switches don't work in 5.3.196 HOT 2
- User Interface Sound Effects
- "Preload as" toggles for audio files in the Resources Panel do not behave the same as the "Preload as" event actions. HOT 1
- Crash while using an editor
- Crash while using an editor
- Electron 18.x.y has reached end-of-support
- Text related actions and conditions suggest objects that are not concerned
- [5-5.3.200 bug] (PLATFORMER OBJECT) is on platform (PLATFORM OBJECT) condition no longer works HOT 1
- Top-down Tanks Redux - Kenney
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.