Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Object Effects increase intensity every time an object with effects is deleted and created #3062

Closed
VegeTato opened this issue Sep 18, 2021 · 3 comments · Fixed by #3149
Closed
Labels
🐛 bug This is a bug impacting users

Comments

@VegeTato
Copy link
Contributor

Describe the bug

if you create an infinite falling objects event, AND if you create another event to remove the objects when its out of screen, OR by just adding the behavior (remove when out of screen), the effect settings (numbers) will start to increase every time the object spawn in endless time, and this applies to all effects.
in my example i used glow effect, but the bug happens in every effect as well.

Steps to reproduce the behavior:

  1. Go to object behavior
  2. Click on Effects
  3. Pick any effect you want
  4. Set the behavior (delete when out of screen)
  5. Got events
  6. Create an action: create object every frame, X:random in range(0,screen width) Y:0
  7. Preview the scene and you should see every spawned object effects getting increased in every frame

Link for the example:
Effects bug.zip

weirddd

  • GDevelop 5.0.0-beta 117 / Desktop
  • an example of how this bug may face the user: if the user made a simple bullet shoot game and added "delete when off screen" behavior to the bullets, and then he wanted to add effects for the bullets, the bug will happen.
@Bouh Bouh added the 🐛 bug This is a bug impacting users label Sep 19, 2021
@Bouh
Copy link
Collaborator

Bouh commented Sep 19, 2021

Do you have an idea? @HarsimranVirk

@4ian
Copy link
Owner

4ian commented Sep 20, 2021

I can reproduce (thanks a lot for the project!) and this is definitely weird. I'll try to take a deeper look.

@Silver-Streak
Copy link
Collaborator

Bringing over details from #3126 as it is related to the same item.

Describe the bug

When creating a sprite that has an effect (tested with Brightness or Adjustment) and then destroying it many times in a row.
After a few repeats the last created sprites effect that should be set as a value between 0 to 1 is not working properly.

To Reproduce

The example creates an object and then changes the brightness value that is the angle from the object to mouse cursor divided by 360 and added with 0.5 to make the value in the range 0 to 1.

the first iteration works as intended, then create and destroy the object a few dozen times and then the last object will go from 0 to 1 in only 45 or so degrees instead of the full 360 degrees.

The brightness effect setting returns to normalish when you create many more objects in a row and delete them all at once.

I have recreated this issue and tried discussing it in discord and seems that it's not working properly.

Attached is the example project and a video showing the problem.

image

2021-10-01.19-40-46.mp4

Brightness bug example.zip

Other details

OS Windows 10
GDevelop version 118

@Silver-Streak Silver-Streak changed the title Effects bug Object Effects increase intensity every time an object with effects is deleted and created Oct 3, 2021
@4ian 4ian closed this as completed in #3149 Oct 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug This is a bug impacting users
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants