-
Notifications
You must be signed in to change notification settings - Fork 53
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
New extension: Jumping In 3D #896
Conversation
hi, i discovered a critical bug, I fixed it, so here is the updated extension, i accidentally used the wrong expression for an event in the "jump" function |
Thank you for submitting an extension. I have some suggestions:
|
gravity or jump function? |
so i got it to work, just going to let you know the game example i gave is quite outdated, so it is not using the new system, when ever i get around to it i will update it tho :), i will need around 4 hours, i am in school and don't have access to a windows device and then i will send the updated extension and if i get around it, the example :) |
ok so i added TimeDelta() and a few more methods to trigger jumping and updated the example game, i did not make them into behaviors because I just don't see a reason to do that. |
A behavior would allow to:
|
valid points, i will work on it but may take a long time |
Here is the updated extension |
Great! I'll take a look. This section of the platformer documentation explains how the vertical speed is calculated (the figures with yellow lines, the red ones are not useful for this case). In case it can give you some ideas. |
ok, i realized that the change property functions in the extension editor don't show in the game editor, so ill go fix that |
Changelog: i will send the new file later (don't have access to a PC with the GDevelop app currenty) |
Hi I finally can export the extension, the same changes as the last message went over |
I took a look. The changes seems good but I couldn't try it with the first example you sent. You can send only the example if you want as the extension is inside it. The feature of this extension is a bit like the platformer behavior but without collision detection (which is fine). Extensions users will handle collision themselves and your extension allows them to change the floor level which is a good idea. Why is there 2 behaviors (one for jumping and one for falling) ? |
i dont understand what you are meaning by "You can send only the example if you want as the extension is inside it." edit: i realized that the gravity behaviour was named inporpperly so ill fix that |
i think i understand what u meant, I'm guessing it was to update the example so here is the example with the updated extension in use |
forgot to send the updated files, i fixed some gramatical errors and renamed some stuff :) |
hey just wondering cuz ya know its been around over a month, how long could it take for this to be merged? i haven't seen anything changed (like get merged or something) and I'm kinda getting worried that it may have been forgotten about ig |
Sorry for the wait, we are thinking of a way to avoid behavior duplication. As it will make this extension easier to do, I'm waiting for a future release of GDevelop. |
|
Just a quick little thing, i will likely not be adding it the ability to use a object as a floor, this will just be left up to other people who want to update the extension as that is just beyond me. |
It's totally fine. |
I credit you on this extension: I you have time to test it, please tell me if you see improvements that could be made. |
I may also convert this to just be a physics engine with wall collision ect, minus the like rotating that the normal engine dose when a object partually hits another, so just wall and floor) |
Actually, if you try the example that uses the extension (space bar to jump), you can see that it handles basic floor and wall collision. |
Since the other extension was merged, I'm closing this PR. |
Description
a quick and easy way to add jumping for a 3D game (using the built-in 3D engine).
How to use the extension
a premade jumping event for 3D games.
features:
you can also use the variable
JumpingIn3D.IsJumping
to detect if the player is jumping (true when the player is going up, requiresAllow Jumping
event to be active).and the variable
JumpingIn3D.IsFalling
to detect if the player is jumping (true when the player is falling, requiresgravity
event to be active).must be in an action that allows per-frame actions eg if a variable is true or false here is an example:
Checklist
What tier of review do you aim for your extension?
Community (Unreviewed)
Example file
JumpExtentionGameExample.zip
WASD, space movement, collect stars for higher jumps
Extension file
JumpingIn3D.json.zip