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
1 answer

Ursina / Python - How do I make it so update() modifies positions from coordinates instead of time

I am trying to make an animation of the Sun-Earth-Moon system on Ursina with python by using Newton's law of gravitation with the sympletic integration. My problem is I don't know how to make the entities move by giving them positions at different…
0
votes
0 answers

Ursina window model change

I was just wandering if the window in the Ursina Game Engine can be changed to a different shape or have curved edges. Like: window.model = 'circle' or something alike. Even if there's an external way for doing it with third party modules, I would…
0
votes
1 answer

i am a new python user and i tried ursina, i created a little 2d shooter game but i don't know how to add a reload time for the each shot

I want to have a delay between each shot or maybe a limited bulled number and then a reload time. def input (key): if key == 'space': e = Entity(y=zeri.y, x=zeri.x+2, model='quad', collider='box', texture="textures/bum.png") …
0
votes
1 answer

I am getting error while I'm creating game with Ursina(python). How can I fix it?

I'm creating FPS game with Ursina Engine (python). But I started to get a error whenever I tried to play it. I just started coding so I don't know what I should do. Code: from ursina import * from ursina.prefabs.first_person_controller import…
0
votes
1 answer

Ursina engine not rendering mesh properly?

i am creating a small game using Ursina and i have code which generates a terrain mesh using perlin noise. the mesh itself renders but i can't put textures on it properly and shaders do not work on it, it just renders as a solid colour. screenshot…
smivvys
  • 1
  • 1
0
votes
1 answer

Why Ursina collider doesn't work properly?

I create an object: class Tube(Entity): def __init__(self, position): super().__init__( model = 'quad', color = color.white, position = position, scale = Vec2(0.6,6), collider =…
0
votes
2 answers

Python class Attribute Error even though attribute is in __init__

I'm trying to run my program: from ursina import * from ursina.prefabs.first_person_controller import FirstPersonController app = Ursina() window.fullscreen = True class Voxel(Button): def __init__(self, colour, position = (0, 0, 0)): …
coolCoder
  • 1
  • 4
0
votes
1 answer

How to make and remove entity according to time in ursina

I want to make Maze-Runner in ursina and change maze according to real time. So, I use 'from datetime import datetime' and get real time in every frame. I want to make the maze change every 6 minutes in reality, but is there a way to create or…
0
votes
0 answers

URSINA how to select a date from calendar panel

I need to select a date from calendar and wish to do with URSINA panel, has anybody developed a simple ones? Please share. I know how to do with wxpython but I would like to do with ursina.
EMILIO
  • 267
  • 1
  • 2
  • 8
0
votes
0 answers

Ursina combine an OBJ file on another OBJ file and rotate it around its Y axis

I am trying to simulate a drone model but combining different OBJ files of a drone. I want to animate propeller rotation. So I that I can visualise when it rolls or pitchs which propellers run at a higher pace. from ursina import * scales=0.01 def…
AKKJ
  • 1
  • 2
0
votes
1 answer

Ursina, how to change font in dropdownbutton

I wish to change font or width in dropdownbutton in ursina, any help? cheer. My simple dropdownbutton is the following from ursina import * # Import the ursina engine from ursina.prefabs.dropdown_menu import DropdownMenu,…
EMILIO
  • 267
  • 1
  • 2
  • 8
0
votes
0 answers

Improved first person controller ursina engine

So im trying to create a game of parkour in ursina engine, and i want to know if there is a way to improve the gravity and the jump of the firstpersoncontroller, because sometimes, the player go in the ground. The parkour object has collider set as…
0
votes
2 answers

With the Ursina game engine, how would I scale a Button to Text when fit_to_text() provides unexpected results?

I am currently writing a class as a derivative to the Button class, creating "Text Buttons" in their stead. However, while I was testing the Button class itself, I seem to be missing something about the Button's surface scaling, rather than scaling…
0
votes
0 answers

Problems with ursina pip download

I have used the command pip install ursina But when I import ursina i get this error message: package_folder: /home/my/.local/lib/python3.10/site-packages/ursina asset_folder: . Traceback (most recent call last): File…
Elmo YT
  • 19
  • 6
0
votes
1 answer

Change Buttons text scale in Ursina

I was just wondering if it is possible to change the text size in the button type entity in Ursina. I haven't found anything like button1.text_scale = … anything is helpful. cheers.