Questions tagged [bevy]

A cross-platform, massively parallel game engine with an entity component system and 2D and 3D renderers.

Read more at the official website.

161 questions
0
votes
1 answer

Transform PbrBundle with Parent in Bevy 0.4

I'm facing a problem where an entity already exists, but I want to add a PbrBundle to it. To try solve this I'm attempting to spawn a child entity along with the PbrBundle. Hoping that it will be transformed according to the parent, but the…
Kim
  • 167
  • 1
  • 5
0
votes
2 answers

It takes like 5 seconds to assign a 1000x1000 pixel texture to a SpriteSheetBundle in the Bevy game engine

Is there a way of improving this situation or am i just using the engine wrong? I tried to go around this problem by first creating and spawning Images of the Background with lower Quality. fn spawn_background(commands: &mut Commands, texture:…
Bruno Wallner
  • 383
  • 5
  • 13
0
votes
1 answer

Would I have to worry about any issues using the Z axis as up/down?

For a 3d environment I highly prefer to use X/Y as the landscape with Z as up, are there any issues I would run in to using this convention in Bevy?
0
votes
1 answer

How can I load all the audio files inside a folder using Bevy?

I'm trying to make a music player where the user can play any audio file inside a folder. To do this, I'm trying to spawn entities containing a Music component and an Sound(Handle) component. In the Bevy examples, I saw this line of…
Denendaden
  • 213
  • 2
  • 7
0
votes
1 answer

Migrating a TaskManager script from gdscript/Godot to bevy and rust

I'm building a city building game prototype where i have villagers doing many different tasks at the same time, such as carrying stuff, building, harvesting, for that purpose i created a TaskManager singleton script with a task backlog array and an…
Onizudo
  • 313
  • 3
  • 7
  • 21
-1
votes
1 answer

why the rust closure fn() can satisfies the trait IntoSystemDescriptor of bevy

there are lot of functions fn add_people(mut commands: Commands) { commands.spawn((Person, Name("A".to_string()))); commands.spawn((Person, Name("B".to_string()))); commands.spawn((Person, Name("C".to_string()))); …
-1
votes
1 answer

How to use time/seconds on your rust code?

Basically I want to make gravity system in Rust Bevy for my player, but I can't figure out how can I do that so I came up with this idea to multiply the -y value with the seconds. If you have any other idea please tell me. Hope you understand what…
-1
votes
1 answer

I can't compile Bevy in Rust?

I am trying to use Bevy to create a game in Rust, but I am experiencing an error when trying to compile my project. The error message I am receiving is: error[E0658]: `let...else` statements are unstable -->…
LocalTrash
  • 19
  • 6
-1
votes
1 answer

Directly adding textures to Assets resource causes a gpu_alloc error

I'm loading textures from a file as a Vec and turning that data into a Texture, when I add that texture to the Asset resource to get a Handle it causes two errors, the first one comes from the logging system and says gpu_alloc::block:…
-1
votes
1 answer

How do I modify specific component when a key is pressed in Bevy?

Consider a simple component representing the player struct TilePos(i32, i32); and spawned as commands.spawn((TilePos(0, 0), ));. What's the correct way of reacting to keyboard input, e.g. the arrow keys, and change TilePos by one whenever a key is…
Jakub Arnold
  • 85,596
  • 89
  • 230
  • 327
-2
votes
1 answer

Unable to build bevy on windows rust

I am trying to use bevy game engine with rust on windows. I have x86_64-mingw installed on my machine. I have setup the rust tool chain default to x86_64-pc-windows-gnu. I put bevy = "0.4.0" under my dependencies in the Cargo.toml. I tried cargo…
NrdyBhu1
  • 375
  • 4
  • 14
1 2 3
10
11