Firstly, the image in my image editor can at times be extremely small. Is there any way to zoom?
This image is just for reference
For example, i have a game where a tar trap will only affect non-flying creatures
If i have example 20 creatures, it will seem dumb to have a collision check event made for every creature right?
Is there a way like assign a variable status to and check from there.
Eg. variable status - 0 = Non-flying
1 = Flying
Then assign accordingly to creature type
On collide - If variable status check = 0
Also, is there a way to have a condition on collision without having to specify a specific 2nd colliding object?
Lastly, for beat’em ups and fighting games, usually they have multiple collision boxes (forgetting hit and attacking hit boxes etc.)
Is there a way to create and name the collision box in the editor instead of having to create hitbox objects and sticking them to the player?
edit: heheh, one more question if i may
i saw a storage under actions. is it for storing and retrieving data like status and stuff? If so, how do i use it?
Thanks in advance. Any help will be much appreciated
No, there is no way right now because a limitation from the GUI library used by GD, but 4ian is working on a new IDE, so in a future it could be possible
If the creatures are different objects, you can put them in a group called “Creature”, and assign to every object the type in an object variable, for example edit the object Dragon >> add the variable “Type” = “Flying” >> and add the Dragon object to the “Creature” group.
Now you can do it:
[code]Conditions: Player collides with Creature
Actions: No actions
// Sub-event 1
Conditions: Variable Type of Creature is = “Flying”
Actions: Do something when Player collides with a flying creature
// Sub-event 2
Conditions: Variable Type of Creature is = "Non-flying"
Actions: Do something when Player collides with a non-flying creature[/code]
If you want to check collisions between the same type of objects, for example “Dragon collides with Dragon”, you have a little big problem, let me know if it’s what you mean and I will explain this further
That would be awesome, but no, if you want to check specific hitbox collisions you have to do it, you could play with frames too but that would be even more difficult.