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
0
votes
2 answers

Perlin Noise - Python's Ursina Game Engine

Is there a way to incorporate Perlin Noise into my Minecraft Clone? I have tried many different things that did not work. Here is a snippet of my code: from ursina import * from ursina.prefabs.first_person_controller import…
-1
votes
1 answer

How am I be able to change the intensity of a shadow in Ursina?

For my code I am suffering from lack of realism due to lack of shadows. The shadows I am currently using makes every shadow black. I want to find a way to lighten this effect. The code I am using looks something like this (The lighting code is close…
-1
votes
1 answer

I'm trying to update my self.health string every time the player collides with the cat enemy in Ursina, how do I do that?

The way I want to do that is draw a ray from Player() to the cat which is meow.Meow, and then update the text on screen every time the player collides with the cat. class Player(Entity): def __init__(self): …
-1
votes
1 answer

Ursina, create a 3D animation

I would like to create an animation in 3D with Ursina. Each frame of the animation is a 3D file that I join in a directory. Here is my code: model = Entity(model="animation_walk/Pokemon_dresseur1.obj", collider="mesh",…
-1
votes
3 answers

Minecraft Clone Bug - Ursina Engine

I don't know why my minecraft clone destroys blocks of the ground, where I don't want. Here's my code: from ursina import * from ursina.prefabs.first_person_controller import FirstPersonController from random import * from perlin_noise import * app…
-1
votes
1 answer

Error: TypeError: Voxel.__init__() got an unexpected keyword argument 'position'

I am trying to make minecraft in ursina but whenever I run it, it says: TypeError: Voxel.__init__() got an unexpected keyword argument 'position' This is my code from ursina import * from ursina.prefabs.first_person_controller import…
aBreadMan
  • 3
  • 1
-1
votes
1 answer

Changing texts in labels

THE PROBLEM I have a problem with ursina, showing a number for how many bullets the player has but it stops working after the first bullet...THANKS! def…
-1
votes
2 answers

How to catch a mouse in Ursina

I'm creating a game using the Ursina engine. In which I use FPS Controller. Which deactivates the mouse pointer. But at the same time I would need to use the mouse in inventory, for example. Is there a way to solve this? What I was looking for on…
-1
votes
2 answers

Lighting in the Ursina Game Engine

I am making a simple simulation of the solar system in Ursina and I am trying to implement a shader. I haven't been able to set the sun to emanate light. I have already tried using point light and setting the location in the sun but this makes the…
-1
votes
1 answer

how do I make a sphere rotate around another sphere in ursina, python

from ursina import * # update sphere_2 rotation def update(): line.rotation_y += 1 sphere_2.rotation_y += 1 app = Ursina() sphere_1 = Entity(model = 'sphere',scale = 2) # try to make sphere_2 follow the lines rotation line = Entity(model =…
-1
votes
2 answers

Python Ursina hide UI

I have an GUI inventory and I don't know how to hide it and all the items there are inside. I tried to make the class Inventory(Entity) enabled or not and it didn't worked because it only gets enables and never disabled. This is my first post so,…
user18198607
-1
votes
1 answer

objects is noised in camera.ui ursina game engine

when i put a detailed object in camera.ui by doing this the_object = Entity(model='gun', texture="gun_texture") the gun would be pretty noised this is how it should've looked like this is how it turned out my problem isnt the scale obviously my…
Bahjat
  • 25
  • 4
-1
votes
1 answer

how i can add Range Field in Ursina Engin in a smole window

I need to add a element like this in my ursina project to select a number betwen 1000 and 1 Million
proking
  • 29
  • 5
-1
votes
4 answers

Python Ursina : destroy an Entity via its coordinates

I'd like to have a function, say destruction(x,y,z) which destroy the Entity placed at coordinates (x,y,z) (if there is one). Of course, the problem is to have a getter which returns the Entity corresponding to some coordinates. Any idea to do this…
Yves
  • 11
  • 1
-1
votes
1 answer

Variable not defined in If statement (Python, Ursina Module)

My problem is that when I change the content of the variable "XO" inside the if statement, the one in the condition of the If statement becomes undefined. from ursina import * import time app = Ursina() window.title = "Game" window.borderless =…
Cosmote
  • 11
  • 2
1 2 3
15
16