Skip to main content

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
61 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
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
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
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
0 votes
1 answer
203 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
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
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
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
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
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
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
75 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
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
696 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
2 votes
1 answer
318 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
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
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
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
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
0 votes
2 answers
875 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
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
1 answer
90 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
-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
911 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

1
2 3 4 5
13