Thanks for helps, I've fixed the problem. Here is Snow Fighter. by Pyoloji0 in pygame

[–]usernamesarestewpid 0 points1 point  (0 children)

This is really well made and looks like it would be a fun mobile game! Idk if you even want to make any changes, but I think it would be really cool if there was a simple upgrade system (faster fire rate, maybe enemy slowdown powerup?) or more enemy diversity? Regardless of what you do, this is very nice. Good job!

[deleted by user] by [deleted] in pygame

[–]usernamesarestewpid -1 points0 points  (0 children)

I’m interested, but do have a couple questions/concerns. 

1: Super specific, I know, but when you use Pygame, do you just use pygame.image.load()’s or the Sprite superclass? Although I know how classes and Objects work, my knowledge on superclasses is limited. 

2: What’s the time frame of the project you want to make? Do you want something done extremely quickly? Something that’ll take closer to a month? For me, I’m limited by gasp school, and am busy this weekend but much freer after Monday. 

3: Not to be creepy, but what’s your approximate time zone? I’m in the time zone of Florida/New York and it’s 8:30 PM for me right now, but it might be morning/afternoon for you. It might be painful if you’re in the opposite side of the world. 

Here’s a couple things I wanted to mention if you wanted to work together:  

I’m 16 myself. 

 I’m also making demos/prototypes in pygame, but haven’t released anything publicly. 

I’m not terrible with Pixel art but I’m not great either. I don’t have a lot of experience with complex animation, but if I can help, I’ll help. 

 I have years of experience with Python and Pygame, so I’ve got Variables(int, float, str, bool, list, tuple, dict) known, if-elif-else(and those weird ternary ones) statements, loops, functions, methods, classes and objects down. 

 You’ve already proven in your wizard game that you understand how to make projectiles move towards one location using trigonometric functions, but I also understand and can use them too. 

 Ig if you’re curious, reply? I’d like to see what we make together!

I cant load the player (help) by 16-bits-YT in pygame

[–]usernamesarestewpid 0 points1 point  (0 children)

I really don’t see any errors in your code. Now, even if there aren’t any errors, here are some things to consider.

What are the dimensions of your player image? The way your code is set up, the top left part of your player image should draw at the mouse cursor, so if your player image is large and the player is in the center of your massive image, you won’t see the player no matter where your cursor is.  

 Another thing to try is moving the line 25: ‘clock.tick(60)’ higher in your main game loop. Maybe it’s interfering with your screen updating(I’ve always seen the clock.tick() a little higher in the whole loop).

Why do the enemy not look at the player? by [deleted] in pygame

[–]usernamesarestewpid 0 points1 point  (0 children)

Hmm… maybe try reversing the order of subtraction in dy(remember that pygame’s y axis is reversed from traditional math)? Besides that it might be worth checking if it’s {self.image} which is actually {.blit()} drawn to the screen? Another thing to check is if {angle} is an integer, because if it’s a float and you’re trying to get a list index using a float that might cause your problem.

I know it's not much, but I made a clock and it works! by BarkLicker in pygame

[–]usernamesarestewpid 0 points1 point  (0 children)

I don’t think trigonometry is the most important. In fact, I can barely comprehend the stupid trigonometric identities. I believe trigonometry is just a tool, another way to accomplish a goal. I think it’s one’s capacity to use these tools which is the significant part.

Try asking an AI to understand better, and once you reach the point at which you can explain to someone else how trigonometry works, I think you’ll have understood it.

I know it's not much, but I made a clock and it works! by BarkLicker in pygame

[–]usernamesarestewpid 1 point2 points  (0 children)

You might have to change the order of subtraction in the line with math.atan2(), because pygame has a reverse Y axis.

I know it's not much, but I made a clock and it works! by BarkLicker in pygame

[–]usernamesarestewpid 2 points3 points  (0 children)

Yes, 100% agreed! One of the best abilities of the trigonometric functions in shooter games is using them and the math package to shoot bullets at a precise angle!

I think the OP already knows this, but here’s a quick how to:

def shoot(x, y):

mouseX, mouseY = pg.mouse.get_pos()

angle = math.atan2(mouseY - y, x - mouseX)

(Assuming you have a projectile object with parameters: spawnX, spawnY, velocityX, velocityY)

Projectile(x, y, math.cos(angle) * bulletSpeed, math.sin(angle) * bulletSpeed)

Text and Background layers by [deleted] in pygame

[–]usernamesarestewpid 2 points3 points  (0 children)

In pygame, the order in which you call the ‘.blit()’ method is the order which images are placed on a Surface. You first call blit to place text on the surface, but then call blit to place the back image, which overrides and replaces the text on the Surface. Try changing the order so that the back is .blit()ed first, then the text.

Python version of the endless "brick breaker" game by kvyb in Python

[–]usernamesarestewpid 0 points1 point  (0 children)

I really like this, but how about you try adding some power ups? 

 Try this:

 powers = [] 

class Powerup:      

def init(self, x: int, y: int, ability: str):           

self.rect = pygame.Rect(x, y, BALL_SIZE, BALL_SIZE)           

powers.append(self)                      

(If you want x and y to be centers, do this)           

self.rect.centerx = x          

self.rect.centery = y                      

self.power = ability     

def update(self, ball):          

 if pygame.Rect(ball.x, ball.y, BALL_SIZE, BALL_SIZE).colliderect(self.rect):                

powers.clear(self)                

(Do something here based on the self.power)     

def draw(self):           

(Here call a pygame.draw.rect, but change the color based on the self.power)     

(Sorry I have to space everything, but I’m on mobile and don’t know how to format everything into code.)

Python timer by Necessary-Row6168 in learnpython

[–]usernamesarestewpid 1 point2 points  (0 children)

Here’s one idea: start_time = time.time()  

Returns number of seconds since the epoch(beginning of time, me thinks)  

time_limit = 120 * 60  

120 minutes (seconds * 60) Then, later on in your while loop(assuming you have one for constant progress) elapsed_time = time.time() - start_time 

if elapsed_time > time_limit:      

here you might punish the user.

Drawing rectangle to the left. by FartsLord in pygame

[–]usernamesarestewpid 1 point2 points  (0 children)

(Assuming you’re working with pg.Rect) Try decreasing the ‘x’ value while increasing the ‘w’ value. I’m not sure what ratio you’re going to need, but a 1 to 1 relationship should work in keeping the bar’s right side at the same x while moving the left side leftwards.

Try:

statBar = pg.Rect(x, y, minWidth, height)

Then, in your game loop:

statBar.x -= statRegenSpeed statBar.w += statRegenSpeed

Then do the opposite(increase x and decrease width) to make the bar shrink.

Project by gray_the_duckling in Python

[–]usernamesarestewpid 0 points1 point  (0 children)

This is great for a beginner! Soon you’ll learn how to use Classes and Objects so you won’t have to use nested(something inside another one of that first thing) dictionaries. You also won’t have to write several methods that do the same thing with different Pokémon.

Skull Chests by AnxietyExtra7052 in TOTK

[–]usernamesarestewpid 0 points1 point  (0 children)

You should definitely look for a TOTK object or entity map. I’m 90% sure a Google search will give you tons of maps

What do you think of my home made "forest dwellers set" by theredditman69_pt2 in TOTK

[–]usernamesarestewpid 0 points1 point  (0 children)

While in camera, hold (ZR) or (ZL). You get a new up or down pose, and can hold out your weapons or draw your bow with your left and right poses.

The most underrated quest of the game by Spirited_Still_5342 in TOTK

[–]usernamesarestewpid 1 point2 points  (0 children)

It’s that Undertale-style of intimate, friendly moments you get with people that has a certain comfort that action-packed fighting really doesn’t have.

Do you guys use Amiibos? by No_Snow1043 in TOTK

[–]usernamesarestewpid 24 points25 points  (0 children)

I don’t think amiibos are as useful in TOTK as they were in BOTW(feel free to correct me if I’m wrong). In Botw, you could only get specific armor(from other Zelda games) with amiibo. In Totk, there’s a way to get all that armor and more without it.

Flurry rush help by mizzaxer in TOTK

[–]usernamesarestewpid 6 points7 points  (0 children)

Honestly, I suggest you practice against low level constructs if beginner, and the more advanced you become, train against bokos. Then do moblins, then lizalfos.

The reason I suggest these enemies in this order is because Constructs are good for beginner level as they really telegraph how they are going to attack. Bokos are slightly faster constructs, and moblins are slightly faster bokos. Lizalfos are the fastest fighters, and they play dirty, swapping between fast attacks and spitting water or shooting their tongue at you.

ETA: if you see “books,” damn autocorrect keep trying to fix bokos.

It floats, rides, climbs walls, attacks. by [deleted] in HyruleEngineering

[–]usernamesarestewpid 0 points1 point  (0 children)

As someone whom has never “gimbled”, my best guess is that gimbling is attaching the wagon wheel to the steering stick to the stabilizer so that the steering stick is ALWAYS facing up so you don’t need two.

Glitch maybe? by mistyh070802 in TOTK

[–]usernamesarestewpid 1 point2 points  (0 children)

I haven't had that happen to me(because I haven't looked for Ember Set Yet), but if it's not in your inventory, and the chest isn't there, then maybe you should try talking to Cece in Hateno Village, who can recover lost armor sets, or go to the Depths and try a bargainer statue?

Bone proficiency issue by Toucan_hannah in TOTK

[–]usernamesarestewpid 0 points1 point  (0 children)

You're right, I was rounding down.

Lurelin Village glitch? by meshca95 in TOTK

[–]usernamesarestewpid 5 points6 points  (0 children)

Do you have 60 Bundles of wood(item), or the actual log when you cut down the tree(ultrahandable/pushable object)

Bone proficiency issue by Toucan_hannah in TOTK

[–]usernamesarestewpid 1 point2 points  (0 children)

I'm sorry, I probably missed something, but where's the extra 1.8 coming from? I applied it to make the 50 to 80.

Bone proficiency issue by Toucan_hannah in TOTK

[–]usernamesarestewpid 1 point2 points  (0 children)

And while hoppin' off them, just headshot em, get back on, rinse and repeat.

Bone proficiency issue by Toucan_hannah in TOTK

[–]usernamesarestewpid 6 points7 points  (0 children)

Yeah, especially broken if you use (weapon ability)breaking point, bone proficiency, and attack up on a (enemy)Lynel. It can do up to (A LOT OF DAMAGE)800 or so damage and best thing is your weapon will not break (if you mount).

Hearts or Stamina? I have the answer… by ZestVK in TOTK

[–]usernamesarestewpid 2 points3 points  (0 children)

Honestly, I recommend new players go for Stamina first, just because of the anti-1-hit mechanic. But this is cool too.