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

How to copy text field entity ursina?

I created a text entity that you can copy using the TextField version of the text entity in ursina . my code was: test = TextField(max_lines=100, scale=3, register_mouse_input = False, text='1234') The error : NameError: name 'selectedText' is not…
0
votes
1 answer

Set window size for Ursina Engine for Python

I'm using Ursina Engine to make a game. However I can't figure out a way how to set a specific size for the window. I need to figure this out, because I can't see part of it, because it's bigger than my screen. I tried to use other posts on…
0
votes
1 answer

Ursina - Make button only clickable when within a certain radius from camera

I have created a 3d button in ursina, but suppose we are a kilometer away from the button, we can still press it. Where is the logic in it? I would like to make the button clickable only when in a certain radius from it. horror_gamemode =…
0
votes
1 answer

Ursina inputfield @ character cannot be typed

I tried a 3D project with ursina engine. I put a login part for the first page. Inside it, there is an email field with InputField ursina. But @ character cannot be entered. If anybody has an idea about it? Thanks. I just put the default value,…
erhan38
  • 9
  • 3
0
votes
2 answers

HOW TO SET WINDOW BACKGROND IN URSINA ENGINE (PYTHON)

I can't set my game's window backgroun image. This is what I have tried: mainbg = Sky(texture = 'Assets/ruined_city_main_bg') But that was incomprehensible and scary. Also I have tried: mainbg = Entity(parent = camera.ui, '''All other arguments''',…
0
votes
1 answer

Delete every entity that was spawned | Python ursina

How do I delete every Entity that was spawned? For example: Entity1 = Entity(...) Entity2 = Entity(...) Entity3 = Entity(...) destroy(scene.entities) # Just an example How do I delete all those with one or multiple lines of code without appending…
Recentaly
  • 17
  • 4
0
votes
0 answers

Entity doesn't appear sometimes with its texture | Python Ursina

I was making a Windows knockoff meme project for fun until I stumbled upon a devastating error. Here's a cut out of my code class DESKTOP(Entity): class OPTIONS(Entity): def __init__(self): super().__init__( …
0
votes
0 answers

create 3d sound in scene ursina

Making 3d game in Ursina. How can one create a sound in a 3d environment where you parent it to an object so the further away the player is, the less sound is emitted? Like something like: a = Audio("file.mp3", range = 1, parent = "some entity")
0
votes
0 answers

Performance issues when raycasting/boxcasting in Ursina

In my game I need to cast rays to see which blocks are in the FirstPersonPlayer's field of view. Here is my code before implementing: from ursina import \* from ursina.prefabs.first_person_controller import FirstPersonController app =…
0
votes
1 answer

Ursina, poor positioning of textures on a complex blender model

I have been trying for some days to make a 3D character that I can display with Ursina in Python. However, when I display my character with the appropriate texture, the result obtained on Ursina is totally different from that on Blender. Maybe the…
0
votes
1 answer

Attribute error when using ursina and making texturebox()

When I run the code it says: :prc(warning): Invalid integer value for ConfigVariable win-size: 864.0 :prc(warning): Invalid integer value for ConfigVariable win-size: 1536.0 Known pipe types: wglGraphicsPipe (3 aux display modules not yet…
0
votes
1 answer

I have a Problem with Ursina Model where it says that it is missing

I started using Ursina engine not long ago, I started with making a small fps game but the gun wouldn't load, and the sound and shooting spark animation wouldn't show Here is my code: from ursina import * from random import uniform from…
N3bu1a
  • 1
0
votes
2 answers

is there a way to change the position and rotation of a directionallighting after an if statement in ursina?

i want to make it so when something is true then the directional lighting will have a different angle. i tried something like this: drlight = DirectionalLight(parent=pivot, y=3, z= -6, shadows=True, rotation=(0, 45, drlight2 =…
iceneoon
  • 21
  • 3
0
votes
2 answers

ursina loads frameanimation3d in the wrong order

so this is the code loading the anim ` hand = FrameAnimation3d('assets\playerhand\hanim2\\cube_', position=(5, 2, 5), scale = 0.1, loop = False, autoplay…
iceneoon
  • 21
  • 3
0
votes
0 answers

How to make py to exe work with ursina networking

so when i exported an ursina game using py-to-exe it all worked just fine but when trying to open a file converted to exe with ursinanetworking in it then it said theres no module uuid and no module replicated_2.py here`s an image:(image of…
iceneoon
  • 21
  • 3