Questions tagged [python]
Python is a dynamically and strongly typed programming language that encourages readability.
635 questions
0
votes
0
answers
67
views
Applying greyscale shading to objects in a Python 3D renderer
I need help with how to apply greyscale shading to objects in a 3D renderer I made in Python. The code is pasted below:
...
0
votes
0
answers
36
views
Meshes are not visible after adding them to an actor scene component
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 ...
0
votes
0
answers
21
views
How do I make smooth 2 way shooting in pygame? [duplicate]
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 ...
0
votes
0
answers
105
views
How do I create a shooting tool that works on both sides?
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 ...
0
votes
1
answer
146
views
Can I Create a Camera System in Pygame Without Using Classes?
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. ...
1
vote
1
answer
94
views
Pygame display.Info() / fullscreen not working under Linux
I am experiencing some issues with pygame.display.Info() and the FULLSCREEN property on Linux. The game is displaying at roughly ...
0
votes
0
answers
62
views
How to use sensors and ray casting for collision detection in Pygame (using a custom Mask/sensor class)?
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 ...
1
vote
0
answers
88
views
How to handle collision events in games with multiple interactive objects?
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 ...
0
votes
1
answer
204
views
Score counter in Python game assigning points to both players
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 ...
0
votes
0
answers
60
views
Is this numerical cellular automaton an efficient way of simulating water or smoke?
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 ...
0
votes
0
answers
52
views
Video editing/editor in Godot or use Godot animations for video editing in Blender Video Editor or elsewhere
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 ...
0
votes
1
answer
181
views
How can I improve vector collision algorithm?
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 ...
0
votes
0
answers
60
views
Raspberry Pi Live data to Unity through Ethernet connection
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 ...
7
votes
3
answers
2k
views
How do you determine what order to process chained events/interactions?
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 ...
0
votes
1
answer
99
views
How to get X and Y pixels of a Image in SDL2?
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:...