Skip to main content
Stack Overflow for Teams is now Stack Internal: See how we’re powering the human intelligence layer of enterprise AI. Read more >

Questions tagged [python]

Python is a dynamically and strongly typed programming language that encourages readability.

Filter by
Sorted by
Tagged with
0 votes
0 answers
60 views

I need help with how to apply greyscale shading to objects in a 3D renderer I made in Python. The code is pasted below: ...
BrainBonkers's user avatar
0 votes
0 answers
36 views

I wrote a Python script (for the editor) to attach a mesh to a scene component of an actor (vegetation_root_component). In the logs everything looks fine, but no ...
phil's user avatar
  • 1
0 votes
0 answers
21 views

I have been trying many thing to make my code work to make a player shoot a small box both ways (left and right) without being able to change the direction of the projectile mid shot. I would be very ...
George Guise's user avatar
0 votes
0 answers
103 views

I am a fairly new user of pygame and i decided to start out with a simple but 'funny' game. I have successfully implemented jumping mechanics, movement mechanics and a one directional shooting ...
George Guise's user avatar
0 votes
1 answer
146 views

I am working on a basic side scroller platformer in Pygame. I want to add a camera system that tracks the camera and scrolls the world and I want to make the camera systems without using Classes. ...
Eren Bayrak's user avatar
1 vote
1 answer
94 views

I am experiencing some issues with pygame.display.Info() and the FULLSCREEN property on Linux. The game is displaying at roughly ...
Æ Hines's user avatar
0 votes
0 answers
60 views

I am making a Sonic game in Pygame and I have recently gotten my hands on a Python class that uses pygame.rect and pygame.mask in unison to create sensors that can be used to accurately detect the ...
miggle's user avatar
  • 1
1 vote
0 answers
87 views

I'm developing a 2D game where multiple types of objects interact with each other through collisions. Currently, I'm using pygame.spritecollide() to detect ...
Daniel Hall's user avatar
0 votes
1 answer
202 views

I am trying to learn to code a simple game with 2 players shooting at horizontal-moving enemies from the bottom of the screen. Everything is working fine except for this: When player 1 hits enemy ...
Marco Marchi's user avatar
0 votes
0 answers
60 views

I'm not a game dev. However I've just created what I believe may be an original means of creating realistic-enough water or fire/smoke textures, which may perhaps in principle (and using a different ...
R1s1ble's user avatar
  • 101
0 votes
0 answers
52 views

I found it very nice and easy to make animations in Godot and it allows you to generate animations using programming, which is marvellous. You can animate the movement of a text with a complex ...
Denis da Mata's user avatar
0 votes
1 answer
178 views

I'm making a game (shocker) in pygame and had issues with tile-based collision detection. There are 5 different non-empty tile types (pictured below) which can be rotated in increments of 90 degrees ...
Sad Robot's user avatar
0 votes
0 answers
59 views

I have a gyroscope storing data on a Raspberry Pi 4 (The Client) and I need to send this data to Unity C# (The Server) so I can use a gyroscope to control position data. I have two separate devices I ...
UnityRaspianVirus's user avatar
7 votes
3 answers
2k views

I'm trying to write a top-down tactics RPG game in python, and run into the first major decision I can't make with my limited knowledge of RPG fundamentals. In our game you create a team of characters ...
John P's user avatar
  • 173
0 votes
1 answer
98 views

I am trying to create a Voxel Space Engine In SDL2 C++. However the tutorial I am following reads the X and Y pixels of the heightmap image. I can't find a way to do this. I am following this tutorial:...
Nabir14's user avatar
  • 59
1 vote
1 answer
121 views

I'm making a GUI that can be controlled by a steering wheel. It need only run on Windows. It works as expected with exception of the fact that the first 90 degrees in either direction seems to be ...
Brian K's user avatar
  • 113
1 vote
1 answer
117 views

I am new to game development, I previously created games using tiledmap editor and pygame, but manually creating map was real pain, so i begun to look how can i procedurally generate map, after ...
Bishnu Chalise's user avatar
0 votes
1 answer
79 views

My frustum culling is detecting an object as culled even though not the entire object's bounding sphere is out of the frustum yet. It's like it believes the bounding sphere's radius is smaller than it ...
Duck Duck's user avatar
0 votes
0 answers
66 views

I am a beginner level programmer trying to learn Python. I could not figure out how to change the values so I can restrict the pieces of checkers from moving diagonally. I want them to be able to move ...
OneSec's user avatar
  • 1
0 votes
0 answers
63 views

...
esnar moquete's user avatar
1 vote
1 answer
88 views

I am making a game right now, and I am working on collision for different Rect walls (all of their data is stored in a list). It works great, except for one problem:...
Tiimzee's user avatar
  • 133
0 votes
0 answers
458 views

I'm trying to make a simple platformer game, which has code to move the camera towards a player as they jump around. Now I have two classes: one for the player, and one for the platform. In the ...
Divyansh undley's user avatar
0 votes
0 answers
74 views

How to get local offset of a control with Python in UE RigEditor? I’ve found a function to get global offset unreal.RigHierarchy.get_global_control_offset_transform ...
Dron4K's user avatar
  • 131
2 votes
2 answers
191 views

I am new to creating games with graphics, and I want to make a very hard game. I have the movement down, but it has a weird bug where it if the user presses down the opposing movement key (i.e. A is ...
Tiimzee's user avatar
  • 133
0 votes
2 answers
322 views

I know we're able to scroll a background image hardcoded or using awsd keys(or arrows) if they're pressed. But what about scrolling it with mouse movement? So I have a piece of panoramic image as a ...
Intice's user avatar
  • 31
0 votes
1 answer
146 views

If the bullet GJK (Convex vs convex) collision algorithm has more than four penetrating points, then how is it filtering that down to the four it needs? What I've tried Staring at the code, but I get ...
Baer Ran's user avatar
0 votes
1 answer
694 views

I am currently working on a Pygame project and would like to seek your advice on best practices for organizing my code, particularly when it comes to creating additional scripts. I find myself ...
anathrax's user avatar
0 votes
1 answer
105 views

I'm trying to get a turtle sprite to chase a falling algae sprite utilising Pygame's inbuilt functionality. I have spent many hours reviewing questions and answers and suspect I'm missing some ...
Lone's user avatar
  • 3
2 votes
1 answer
317 views

I have some images of static objects using per-pixel alpha (trees, rocks) for a background. In order to make them look a bit more natural, I want to create some kind of atmospheric fog, which means ...
Intice's user avatar
  • 31
1 vote
1 answer
108 views

I would like to understand the process of selecting the correct tile from a scaled Surface when I have information about the number of tiles on the x and y axes, the length of the Surface, and also ...
anathrax's user avatar
1 vote
0 answers
394 views

In Ursina, how can I programmatically obtain the current FPS count as number (like extracting it from the fps counter in the upper-right corner)? I need this for phyiscs calculations in Ursina. I have ...
EarthAndMoon's user avatar
0 votes
1 answer
445 views

How do I use a sprite sheet in pygame zero? The height of the images are 32, width is 25
Tokyn Blast's user avatar
0 votes
0 answers
133 views

How can I load an asset (model, texture, etc.) from a .zip file in Python's Ursina module without extracting it? I tested this code: ...
EarthAndMoon's user avatar
0 votes
0 answers
78 views

I'm building my own engine using python and pygame however my cube model is not able to be displayed correctly. This is my result after applying translation, scaling and projection matrices: ...
Zoler1337's user avatar
0 votes
1 answer
353 views

I'm having trouble with a PyGame animation I'm writting. I have a Ball class that defines an object that moves on the screen and bounces on the edges. I initialize ...
WinterPanda's user avatar
-1 votes
1 answer
989 views

I wanted to open my game to check that everything is working properly, but whenever I try to open the project, it redirects me to the script instead. This is the message below: I'm sorry, but errors ...
Umi's user avatar
  • 11
0 votes
1 answer
236 views

I copied a perspective projection matrix from here (https://jsantell.com/3d-projection/) and applied it to my vertices. It looks ok but without depth. Rotation matrices also work. When I try to divide ...
Zoler1337's user avatar
1 vote
0 answers
204 views

I am writing a pseudo-3D game in Python. After I tried to fix the fisheye problem, a new one appeared - if you stand close to the wall and look so that the wall is on the side, then the borders of the ...
kingley's user avatar
  • 11
0 votes
2 answers
872 views

I'm making a weather simulator with Python's Ursina engine, but I cannot load models. The error stack: ...
EarthAndMoon's user avatar
0 votes
1 answer
287 views

I'm making a weather simulator with Python's Ursina module, but the script crashes with two exceptions. Console output: ...
EarthAndMoon's user avatar
0 votes
1 answer
450 views

I created a level in Unity, and I want to place some of the level objects in Maya so I can create an animation based on these objects. I can import the model FBX with no problems into Maya, but if I ...
Panda Pajama's user avatar
  • 13.5k
0 votes
0 answers
209 views

I'm making a game with infinite, blocky procedurally generated worlds in python, with PyOpenGL. I figured out that allocating all the VBO space at once causes a lot of lag. To fix this, I am ...
N3RDIUM's user avatar
  • 53
0 votes
1 answer
90 views

This is my code: ...
David Tan's user avatar
0 votes
2 answers
284 views

This is my code: ...
David Tan's user avatar
1 vote
1 answer
259 views

I have been trying to make a simple game, and have recently been trying to work on a menu system for it. I am trying to insert a TextEntry box using the examples they have provided themselves. I have ...
thor625's user avatar
  • 25
0 votes
1 answer
363 views

I have just started working with pyglet trying to make a simple game as a hobby. However, I have run into an issue. I am working with this demo: https://github.com/pyglet/pyglet/blob/pyglet-1.5-...
thor625's user avatar
  • 25
-2 votes
1 answer
764 views

I'm new to python and am making snake for a project/ I'm not sure how to randomize all the colors to different colors every time the snake eats and grows. I've looked up multiple things and nothing ...
c0der's user avatar
  • 1
0 votes
1 answer
641 views

I am having issues where the variable action_cooldown does not update. I could remove this but then both the player and enemy attack at the same time, which is something you do not want in a turn ...
KianMckenna's user avatar
0 votes
1 answer
910 views

I'm not a gamedev, I'm a API/Cloud dev, performance has never been an issue for me since most of the time we are limited by network calls. I've been playing with that for the past 2 days, I wanted to ...
sliders_alpha's user avatar
0 votes
0 answers
462 views

I've recently been experimenting with Python and PIL to generate heightmap images using simplex noise. The generated heightmaps are simply 2D numPy arrays with height values ranging from 0-1. I ...
Sad Strawberry's user avatar

1
2 3 4 5
13