Skip to content
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

Trying to make a platformer engine game crashes whenever I run this code (tbh we should have a discord just to make getting help easier) #204

Open
Dracotyoshi opened this issue Aug 23, 2024 · 6 comments
Labels
bug Something isn't working

Comments

@Dracotyoshi
Copy link

What Happened

image
image

How to Reproduce

image

Use these code blocks on an object and then run the scene

Block Coding Plugin Version

Latest

Godot Engine Version

Latest

Operating System

Windows10

Logs or command-line output

No response

Anything else?

Please make a discord server or something for the plugin

@dylanmccall
Copy link
Contributor

dylanmccall commented Aug 24, 2024

Oh yep, that's a bug in the released version of the plugin. What's happening is it doesn't fall back to default values for the vector parameter in the "Change Velocity" / "Change Position" blocks. You can work around that by entering 0 in that empty y input field.

I couldn't say when it was fixed (I think it was supposed to be fixed in #173), but it does appear to be fixed after our big rework in the current main branch. Not sure when the next release is, but if you're curious, you'd be welcome to try that out! (There's no native code, so you can download the addons directory from https://github.com/endlessm/godot-block-coding/ and dump it straight into your project, and you'd be welcome to report any issues you spot there).

I like your idea to make a Discord server :) I'll ask around. I've been trying to remember to keep an eye on #visualscript in Godot Cafe, and indeed just saw your message there! Thank you for taking the time to report your issue here.

@dylanmccall dylanmccall added the bug Something isn't working label Aug 24, 2024
@Dracotyoshi
Copy link
Author

Thanks

@Dracotyoshi
Copy link
Author

also how would I go about adding gravity and getting the momentum to work
image

@manuq
Copy link
Contributor

manuq commented Aug 26, 2024

@Dracotyoshi if you want to do it easier:

  • Add a SimpleCharacter node (that comes with the plugin)
  • In the inspector, set a texture to it. Set a speed.
  • Add a BlockCode node as child of the SimpleCharacter node.
  • In the block canvas, add "On Process" and then from Input "Move with Player buttons as platformer".

Captura desde 2024-08-26 09-43-29

@manuq
Copy link
Contributor

manuq commented Aug 26, 2024

About the Discord question, we have a thread in Godot forums for feedback: https://forum.godotengine.org/t/block-coding-high-level-block-based-visual-programming/68941/31

@Dracotyoshi
Copy link
Author

and from what I can tell this solution does not give me any control on custom input methods

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants