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

how to load multi textures for one model in ursina Python

I need to load 3 texture for a house in my ursina game My code: textures = ["wall","slap","window"] class Homes(Button): def __init__(self,pos = (10,1,0)): super().__init__( parent = scene, model = 'images/house', …
proking
  • 29
  • 5
2
votes
2 answers

How to add delay in Ursina Python Game Engine

I've recently started using Ursina Game Engine (runs in Python), and have run into a problem throughout many of my projects. I don't know how to implement delay, or sleeping between functions. There is a Wait function that I haven't been able to get…
ExtremSnek
  • 21
  • 5
1
vote
0 answers

How to fix this Ursina python code error?

I am coding this ursina code on pycharm but, it not working. from ursina import * app = Ursina() window.color = color.rgb(255,0,255) window.exit_button = False app.run() I don't know what is the problem in this code but this is the error that I…
nub
  • 11
  • 4
1
vote
0 answers

why and how to fix ursina texture doesn't work and model pure dark black?

The texture works well on another .obj:
1
vote
0 answers

Can I move Ursina FirstPersonController by scrolling mouse wheel?

I would like to move forward and backward by scrolling mouse wheel. How can I adjust ursina.prefabs.first_person_controller.FirstPersonController so that it is controlled by mouse only... specifically, I'd like the forward and backward movements to…
Sebo.PL
  • 51
  • 4
1
vote
1 answer

Ursina FirstPersonController self.camera_pivot.rotation_x always goes down as mouse is moved slowly (no matter in which direction)

I'm fairly new to python and gamedev in general. I've encountered a problem with Ursinas FirstPersonController: Every time i run the app, as soon as i move the mouse slowly the field of view seems to turn upwards (x-Axis) simultaneously as it turns…
siriustop
  • 11
  • 3
1
vote
0 answers

Ursina parent windows

Is there a way in the ursina game engine, to parent two separate windows together, with one always being in front of the other. Like if you were to load up the first window then the second where it will stay in front of it, but also be like together…
1
vote
1 answer

Problem With Entites In A Dictionary in Ursina Python

I need to make a grid of many individual entities and I am using a dictionary to create them automatically instead of having 1521 lines of code to create each individual entity. I am using the on_click function to run a function, "action", when the…
Bluffyyy
  • 93
  • 5
1
vote
1 answer

Update Text Entity in Ursina, Python

I have this code: BUTTON_INDENT = -1 class TIME(Text): def __init__(self): super().__init__( text=time.strftime("%H:%M"), position=(0,0,BUTTON_INDENT), ) How do I make it so the text inside…
Recentaly
  • 17
  • 4
1
vote
1 answer

ursina fps controller wont jump if i press shift and ctrl

I was creating a game in ursina using the FirstPersonController import to use as the player. There's just an issue when I hold shift/Ctrl then press space to jump, The player doesn't jump. I have looked through the FPS controller code but nothing…
1
vote
1 answer

Entity Gravity ursina

I was starting to make a 3d game when i created a way to pick up certain entity's as boxes and move them around with the player. When i drop them however, they stay floating where they were. How to i add gravity to the entity? like when i drop the…
1
vote
1 answer

how to get height of an entity in ursina?

I'm making a Brick Breaker Game using Ursina in python. I've created some entities which work as ball and bar. bar = Entity(model='quad', color=color.blue, position=(4.5, -10, 0), scale=(3, 0.3), collider='box') ball = Entity(model='sphere',…
Shahriar
  • 71
  • 1
  • 9
1
vote
1 answer

Can I delete a Entity that isn't in a list in Ursina Engine?

I am making a game in Ursina Engine and I am trying to delete Entity by clicking it. Everything works fine until I click it. It won't destroy the Entity it just shutdowns the game Here is my code, I have tried everything I can imagine. from…
1
vote
1 answer

Is it possible to create an invisible barrier in Ursina Engine?

Does Ursina allow for one to create an invisible barrier to prevent the player from falling off the map, if so, how could I do that, if not should I just add walls to prevent that from happening?
1
vote
0 answers

How to use lights in Ursina

I'm trying to make a horror type game in Ursina as a small project but I can't figure out how to position the point light. I want the point light to be pointing forward a bit and be at the players position. I practically just want to make a…
Onewaypie
  • 31
  • 4
1
2
3
15 16