Questions tagged [ursina]

Ursina makes it easier to develop games, visualizations, and other kinds of software. The concise API combines with the power of the Python programming language.

Ursina makes it easier to develop games, visualizations, and other kinds of software. The concise API combines with the power of the programming language.

Links: Documentation

238 questions
5
votes
6 answers

Ursina Engine textures

So I started playing with an API for python called Ursina Engine and I got to the point I need to add a texture. Whatever I put for the file path, always just doesn't render. No errors, just a blank entity. from ursina import * # import…
Anslip
  • 63
  • 4
3
votes
1 answer

How to stop a video texture from looping in ursina engine

I'm new to game development and the only programming language I know is python. So I used ursina game engine, and wanted to start the game with video intro that explains what the game is about, it works but it keeps looping. from ursina import…
3
votes
0 answers

normal maps in ursina

I wanted to if there is a way to add a normal map or a displacement map onto an Entity in Ursina Engine. I have looked for it in the cheat sheet and have not found a way but still wanted to ask if there is a way.
sako-is
  • 31
  • 5
3
votes
5 answers

Ursina not importing in python

I'm getting error: Traceback (most recent call last): File "C:\Users\user\Downloads\blocky\main.py", line 1, in import ursina as ue ModuleNotFoundError: No module named 'ursina' I tried: pip install ursina wait I also did python -m…
Srinivasan
  • 35
  • 6
3
votes
4 answers

Properly close the window using mouse in Ursina

For the past couple of days, I have been playing around in the Ursina Engine in Python, used for creating both 3D and 2D games. But the recurring problem I have been facing with this engine when making 3D games, is that I can't close the window…
krmogi
  • 2,588
  • 1
  • 10
  • 26
2
votes
0 answers

Why does gifs disappear before it loops again? there is a frame where after the gif animation is done it disappears and loops the gif again,

Why does gifs disappear before it loops again? there is a frame where after the gif animation is done it disappears and loops the gif again, from ursina import * app = Ursina() enemy = Entity(model="quad", position=(3, 0), scale=(1, 1),…
7MO0Di
  • 21
  • 1
2
votes
1 answer

Ursina Fog doesn't work correctly with first person camera

Basically, I am trying to make it seem like the player is underwater using fog, but, even though the fog "works", it seems to change in opacity based on what direction you are facing and where you are on the map instead of remaining the same. import…
clodon2
  • 39
  • 4
2
votes
0 answers

Python error when trying to destroy an object in Ursina

I'm pretty new to coding in python but I have started a small little script. Its a first person shooter and right now I'm working on ammo boxes you can pick up. This is the code: from ursina import * from random import uniform from ursina.shaders…
Onewaypie
  • 31
  • 4
2
votes
1 answer

Making a main screen in Ursina

I am currently making a game with Ursina and i've been struggling to find a code to make a Main-Starting-Screen to start the game or show controlls. Here is my game code: game = Ursina() ground = Entity(model = "untitled.blend", texture = "Soul…
Sanipower
  • 21
  • 2
2
votes
2 answers

First-person controller y-pos logic in Ursina

I have a clone of Minecraft and I want to see if the player falls off the island it would quit the game. I thought that if I wrote. if player.position == Vec3(x, -80, z): quit() it would quit the game but that didn't work so I don't know what…
2
votes
1 answer

How to trace a line between two objects in Ursina Engine

I want to draw a simple 2D line between the origin and a moving player object. I've tried using a separate entity that always looks at the player entity: class Body(Entity): def __init__(self, head: Head): super().__init__(model="line",…
2
votes
3 answers

Ursina Python Engine: Lighting, Shadows And Bloom Effects

I Am New To Ursana Engine And I Don't Know It Properly. But I Can Make Games In It. But The Problem Is That My Game Doesn't Have Any . So My Game Looks Dead. Is There Any Way To Make My Game Look Good Using…
Josh4Help
  • 33
  • 1
  • 5
2
votes
1 answer

how to remove lighting in ursina?

I am making a game and I want to implement a sun rise and sun set. I tried to find an answer in the 'ursina cheat sheet' but I could not find an answer there. more specifically I want to remove the lighting that you get when you make a ursina…
error 1044
  • 111
  • 1
  • 6
2
votes
2 answers

Black Screen when i try to use Ursina on Python

from ursina import * Entity(model='quad', scale=60, texture='assets/blue_sky') app = Ursina() app.run() # opens a window and starts the game. when i run the code the black screen with nothing
2
votes
1 answer

How do I implement enemy collision using Ursina and change bullet direction in Ursina?

I was making an Ursina game, annd when I went to the enemy collision, it makes an error like this: Traceback (most recent call last): File "C:\Users\Minerva Panganiban\AppData\Local\Programs\Python\Python39\lib\site-packages\ursina\main.py", line…
1
2 3
15 16