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
1
vote
3 answers

Is there any way to delete a button after I press it

Is there any way that I can delete the b_render var when the b_logic function is activated? I have been trying different solutions for about an hour and nothing works. is there anything I overlooked? from ursina import * def b_logic(): …
ducklaster
  • 11
  • 2
1
vote
1 answer

Ursina player keeps clipping through ground

I am making a 3D game in Ursina. But, if the player falls at a great enough height, it will just clip straight through the plane and fall into the void. I'm guessing it is because the player is falling so fast the game doesn't even realize the…
Spiceinajar
  • 101
  • 1
  • 10
1
vote
1 answer

Problem with making a sprinting function in python Ursina

I'm making a Mineclone, but am stuck in the sprinting bit. I want code that will put the player in 'sprinting' mode when you press Ctrl, as long as you have w pressed, and exit sprinting when w is released. Releasing Ctrl while sprinting should do…
CodeWizard777
  • 71
  • 1
  • 10
1
vote
0 answers

how to implement sequence of animations in Ursina

I'm trying to implement a complex animation in my cow character in Ursina (i.e. composed by more than one animation). What I don't manage to achieve is to trigger a sequence of animations ecoded in states of the animator. In fact, I don't even know…
DaniPaniz
  • 1,058
  • 2
  • 13
  • 24
1
vote
2 answers

Ursina isnt reconised by Visual Studio Code

So I have done pip install ursina in the command prompt but when I try write some code in visual studio code (like, from ursina import *) an error appears saying; No module named 'ursina' Can someone please help.
1
vote
1 answer

I have problem with ursina when it get compiled to exe

I started creating a shooter game with ursina, and I tried to get exe from this using pyinstaller. After I got the exe, when I run the app, it show me an error (o I have coded a new game with ursina, but I got this: Traceback (most recent call…
Arash
  • 11
  • 1
  • 9
1
vote
0 answers

How to make a label above an entity ursina python

I have a zombie and i want a label above it about its hp and the name. It's working but if i go far away i want the label to be resized to the scale of the zombie in the camera. I know there is a screen_position variable in every entity but there's…
csdaniel
  • 11
  • 3
1
vote
1 answer

Raycast not hitting anything in python ursina

This program will have a cube, a ground underneath and a raycast to detect the ground. Issue But the raycast is not hitting anything, even if i change the "direction" section to anything Code from ursina import * from random import randint app =…
nHyper
  • 53
  • 5
1
vote
1 answer

Why is my python program giving me a filenotfound WinError 3 every time I use the ursina engine?

I have installed the Ursina game engine recently and I am getting started with it, but as I write a basic program it gives me a traceback contradicting some built in programs in ursina and ending with a Filenotfound Winerror 3 pointing to a music…
1
vote
1 answer

Why is the object not callable all of a sudden?

So I was making a game in the Ursina engine and I made two of the same button: class MainMenuButton(Button): def __init__(self, pos, text): super().__init__( model = 'cube', color = color.white, …
1
vote
1 answer

How do you rotate ursina entities around their local axes?

I can’t get my code for rotating a 3D object around its local axes to work correctly. I’m using the Ursina game engine. The 3D objects that I want to rotate extend the Entity class, which has a rotation property that’s Euler angles. I learned via…
clickbait
  • 2,818
  • 1
  • 25
  • 61
1
vote
1 answer

Enemy collision in Ursina

I'm making a game in Ursina and I want to print "true" or "false" (like a boolean). This is because the game I am making needs collision for the entities. I have looked for a solution but I couldn't find anything. How can I detect collisions in…
1
vote
4 answers

ursina window not opening up on mac OS big sur

I am starting Ursina out, and I opened the terminal and did pip3 install ursina, and it worked, and now in VS code im running the basic code but no windows are popping up. I am on mac OS Big Sur. This is my code. from ursina import * app =…
1
vote
3 answers

Lighting in 3D Ursina Games

I just started learning the Ursina game engine and I was wondering if there was any way to add lighting against entities. I'm trying to make an FPS game and it seems I can't find anything on the topic of lighting! It surprising and frustrating so,…
MaxFlyMan
  • 31
  • 3
1
vote
3 answers

How do I put gravity on a character in ursina engine?

(Python Ursina Engine) How can I add gravity on ursina engine?? Here is the code that I'm using: https://github.com/pokepetter/ursina/blob/master/samples/terraria_clone.py from ursina import * from math import floor app = Ursina() size = 32 plane…