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 update function within class

In a project I am working on, I have multiple classes in which I wish to each have an update function when an object is created. How do I get these update functions to run every frame? i.e for this example code, how do I get both class a and b to…
Oldy
  • 5
  • 2
0
votes
1 answer

Resizable in Python Ursina Window

I want to set the Ursina window resizable to False, just like tkinter. window.resizable(False, False)
0
votes
0 answers

Ursina engine. How to make cubes not appear on other cubes

So I wanted to something like mining game in ursina engine. I wanted that if you mine a block other blocks will appear under that block and on other sides of this block creating a mining effect. I tried raycasting but i can't properly set it and it…
Neufdi
  • 15
  • 3
0
votes
1 answer

Ursina Engine Cube is not appearing under cube upon clicking

So i have my code and I want to appear a cube under a cube i will click. Then i want to check if there are cubes around this cube if in some place there isnt a cube then create one but i cant do this. Can someone help me? from ursina import * from…
Neufdi
  • 15
  • 3
0
votes
1 answer

Randomizing Pairs of Shapes appearing on the screen in Python using the Ursina Game Engine

I want a randomized pair of shapes to appear on the screen when the game is run and this pair removed and replaced with another pair of shapes when the left shift or right shift button on the keyboard is pressed, using the Ursina Engine in Python.…
0
votes
1 answer

how to disable First Person Controller in ursina

i making pause menu in ursina and i dont know how to disable mouse always on top and disable First Person Controller in ursina, a tryed: player.FirstPersonController.disable()
rhacker
  • 5
  • 2
0
votes
1 answer

Python Ursina level switch

I'm trying to create a 2D game in ursina and I have a class FirstLevel in which I create the player 2D entity, enemies, cubes etc and I also use this class' update method for player action etc. In my main.py, first I create a menu like interface…
0
votes
1 answer

Locking player position in Ursina with an Entity

How can I lock the position of my FirstPersonController in Ursina When my FirstPersonController remains standing, another Entity can go through the FirstPersonController entity though I used collider. How can I solve that ?
Sami
  • 1
  • 1
0
votes
1 answer

Checking for last entity position to move the entity randomly to somewhere else

I am trying to make a game like grindshot in aimlab using ursina engine. I need to move the targets each time you click on them. They should move somewhere where already isn´t any target. This part works but they ocassionally don´t change the…
Jacob G
  • 1
  • 2
0
votes
1 answer

Python Ursina car move direction

I want to make some racing game in Python Ursina. I made my car model with rotating (changing drive directions), but I want to make it drive, where car is rotated using "w" key. But it still go only direction up, even when it's rotated and I want it…
0
votes
1 answer

my on click function is not working in ursina

I don't know how to do that when the user clicks on Settings so that everything is invisible. I tried Play.on_click = Settings.visible = False Play.on_click = quit.visible = False Play.on_click = Play.visible = False but it doesn't work
rhacker
  • 5
  • 2
0
votes
1 answer

Setting up a definite spawn point for FirstPersonController in Ursina

I have two questions. I want to set my FirstPersonController() to spawn at a definite coordinate. How can I do that ? When I run a Ursina code with FirstPersonController(), it seems to be locked in a position or falling into void, but I had set up…
user15680659
0
votes
1 answer

Ursina engine: problem moving the player shot

I'm creating a 2D game using Ursina Engine. While making the player shot, the shot intantiates fine, but it simply doesn't move. Tried using playerShot.y += vel* time.dt didn't worked. Tried using animate_position(), didn't worked correctly. Here's…
0
votes
2 answers

intersects doesn't always work ursina engine

I have a bullet class and sometimes when it have to hit something it doesn't hit it(intersects function doesn't senses when it hits a thing(in my case the zombie) so it pierces through it and i don't know why. Please help me! Thanks
csdaniel
  • 11
  • 3
0
votes
1 answer

How do i get user input with Ursina

I'm making a Minecraft clone with Ursina engine and I want to add commands like in the real game, is there a function to get user input like Entry() in Tkinter ?