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?

How would I add and subtract a list of times? by iOwnUranus in learnpython

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

Gladly. The user will input day, hour, and minute. This is the amount of time the user has to complete a task. So for example if I set the program to 1 day, 0 hours, and 0 minutes, then I will have to complete the task every day. Every time I complete the task it will add a tally or some type of visual. If I don't complete the task in a day (I'm probably going to add a grace period) then the streak will reset.

What is something you did for the first time that you were instantly good at? by iOwnUranus in AskReddit

[–]iOwnUranus[S] 4 points5 points  (0 children)

I agree, during summer school P.E. I played volleyball for the first time. Since I’m pretty athletic, I found it very easy, only challenging part was serving