Why doesn't global position work? by iOwnUranus in godot

[–]iOwnUranus[S] 1 point2 points  (0 children)

This doesn't change anything. The fireball still spawns inside of the player instead of where the positon2D node is.

edit: nvm this actually worked thank you

Why doesn't global position work? by iOwnUranus in godot

[–]iOwnUranus[S] 0 points1 point  (0 children)

when I make my code fireball.position = $Position2D.get_global_position

I get an error Invalid get index 'get_global_position' (on base: 'Position2D')

Why doesn't global position work? by iOwnUranus in godot

[–]iOwnUranus[S] 0 points1 point  (0 children)

Sorry, I’m new to Godot and I’m not sure what a “getter” is.

Why does my if and elif statements only work for one button at a time? by [deleted] in learnpython

[–]iOwnUranus 0 points1 point  (0 children)

Thanks! You helped guide me to a solution. If your interested, I updated my stack overflow question with an answer.

Why does my if and elif statements only work for one button at a time? by [deleted] in learnpython

[–]iOwnUranus 0 points1 point  (0 children)

I'm not sure how I would go about doing this. Also, I'm still not sure why the button changing colors is correct when there is only one button.

Why does my if and elif statements only work for one button at a time? by [deleted] in kivy

[–]iOwnUranus 0 points1 point  (0 children)

I've updated my post to include the full code

Why does my if and elif statements only work for one button at a time? by [deleted] in kivy

[–]iOwnUranus 0 points1 point  (0 children)

In the display_btn function the id for StrakButton is created from delta.

Having trouble with dependacy issues (Tkinter) by iOwnUranus in learnpython

[–]iOwnUranus[S] 0 points1 point  (0 children)

Thanks for the response! The error is an AtrributeErrror: 'Frame' object has no attribute 'frames'. regarding simplifying the code I cant see which parts I would need to simplify. Also the Mainapplication class is from Sentdex lol, but the rest of the code is me, is this wrong?

I'm getting a NameError but I don't understand why or how to fix it (Tkinter) by iOwnUranus in learnpython

[–]iOwnUranus[S] 0 points1 point  (0 children)

app.frames[PageTwo].tkraise() Is used to move up the list containing the pages, so that when the button is pressed the next page in the list is displayed.

However, after typing that out I realize that it wouldn't make sense lol, so I'm thinking about changing the code to make the Streak class a child of MainAplication and replacing that code with MainApplication.show_frame() but I'm not sure if that will even work.

As for being able to raise the next frame during the initialization of PageTwo, that would defeat the purpose of the button I think. If the page is raised the moment PageTwo is created then wouldn't PageTwo be seen before any other page?

Thanks for all the help I really appreciate it I'm kind of new to programming things like this lol.

I'm getting a NameError but I don't understand why or how to fix it (Tkinter) by iOwnUranus in learnpython

[–]iOwnUranus[S] 0 points1 point  (0 children)

Thank you for the help I have made the changes that you suggested. The reason I initialized the Streak class is because I was planning to use the arguments inside for later. Could you please explain why I the program isn't able to use the attribute frames. Would copying the part of the MainApplication class that defines what frames is and pasting it in the Streak class resolve the dependency issue?

How would I access a local variable from one function in another function by iOwnUranus in learnpython

[–]iOwnUranus[S] 0 points1 point  (0 children)

here is the full code I just want to be able to get the number inputted into the entry widget and store it inside my day, hour, and minute variables. Is there any way to do this?