YoYoGames / GameMaker-Bugs

Public tracking for GameMaker bugs
21 stars 8 forks source link

In-Game: phy_particle_flag_wall() does not work correctly #5499

Open Glim888 opened 4 months ago

Glim888 commented 4 months ago

Description

If I set physics_particles from phy_particle_flag_water to phy_particle_flag_wall and then back to phy_particle_flag_water,

then the particles do not collide correctly anymore. The problem is, if I convert particles to phy_particle_flag_wall, then the collisions stop to work correctly.

See video

https://github.com/YoYoGames/GameMaker-Bugs/assets/30154346/8e70e4f1-e501-4131-b6d3-2e3273c76602

Expected Change

The particles should not lose their collision-ability after being converted from phy_particle_flag_wall back to any other flag

Steps To Reproduce

  1. Start GameMaker
  2. Water particles get created
  3. Water particles get converted to wall particles
  4. Wall particls get converted back to water particles and then the lose their collisions
  5. See the issue

How reliably can you recreate this issue using your steps above?

Always

Which version of GameMaker are you reporting this issue for?

2024.2.0 (Monthly), 2022.0.2 (LTS), 2024.400 (Betas)

Which platform(s) are you seeing the problem on?

Windows

Contact Us Package Attached?

Sample Project Added?

stuckie commented 4 months ago

Thanks for reporting this issue, but in order to investigate we will need a small project which shows this issue. Please report this issue again, but ensure you have a suitable project open at the time and you have checked the “Include Project” option on the bug form.

Glim888 commented 4 months ago

phy_particle_flag_wall_bug.zip

Sorry, I would like reopen it.

Glim888 commented 2 months ago

I am wondering, if you guys could fix this, because I need it pretty bad for my game, which is a water simulator with more than 10mio downloads on all platforms:

https://play.google.com/store/apps/details?id=com.gaming_apps.water_physics_simulation

Glim888 commented 2 months ago

The bug seems easy to fix, because I figured out, when this happens:

As you can see in the video below, the particles stop to collide with the terrain, if I add the phy_particle_flag_wall flag to a particle, that touches the terrain.

https://github.com/YoYoGames/GameMaker-Bugs/assets/30154346/7e3fac9f-d74b-4bc6-84f3-92be1cc41917

Glim888 commented 1 month ago

@jackerley thanks for self-assigning this. This will help me with my game, I appreciate this a lot. :)

If you need any help or more hints, then let me know.

Foxtrio commented 1 week ago

Any updates in this issue? I'm observing the same problems.