Skip to content

Conversation

@tristanbob
Copy link
Contributor

@tristanbob tristanbob commented Aug 5, 2023

Problem (Update: Solved!)

@D8H can you take a peek at this game and extension?
My problem might be caused from copy/paste functions from the FlashColor extension into the Flash extension, or perhaps renaming the behaviors.

This extension works for the first object "Red Hero".
But when I add the behavior to a second object "Cyberpunk", it doesn't work.
Here is the strange thing: The objects have different behavior names!

RedHero has "FlashOpacityTween" behavior and it works (this was a previous name of the extension)
Cyberpunk has "FlashOpacity" behavior and it does NOT work

The behavior is currently named "FlashOpacity".
How is RedHero even working?
How do I get Cyberpunk to work?

@github-actions
Copy link
Contributor

github-actions bot commented Aug 5, 2023

Preview the game(s) changed or added in this Pull Request


This is an automatic message displaying links to the games in this PR - double check the JSON in case of doubt.

@github-actions
Copy link
Contributor

github-actions bot commented Aug 5, 2023

Images automagically compressed by Calibre's image-actions

Compression reduced images by 9.1%, saving 3.47 KB.

Filename Before After Improvement Visual comparison
examples/flash-object/assets/Check round button.png 1.77 KB 1.74 KB -2.0% View diff
examples/flash-object/assets/Cyberpunks 1 Portrait 1.png 18.07 KB 17.83 KB -1.3% View diff
examples/flash-object/assets/Fire round button.png 1.78 KB 1.74 KB -2.0% View diff
examples/flash-object/assets/GDevelop red hero.png 14.36 KB 11.75 KB -18.2% View diff
examples/flash-object/assets/Gyro.png 2.16 KB 1.60 KB -25.8% View diff

5421 images did not require optimisation.

@tristanbob
Copy link
Contributor Author

tristanbob commented Aug 5, 2023

Hooray! I fixed this by editing the game JSON file:

  • Removing the old behavior name in behaviorsSharedData
  • Search replace game JSON from "FlashOpacityTween" to "FlashOpacity"

@D8H
Copy link
Contributor

D8H commented Aug 5, 2023

Hooray! I fixed this by editing the game JSON file:

* Removing the old behavior name in `behaviorsSharedData`

* Search replace game JSON from "FlashOpacityTween" to "FlashOpacity"

Ok, I'll try and see if I can find a bug in the rename refactoring.

@tristanbob
Copy link
Contributor Author

Hooray! I fixed this by editing the game JSON file:

* Removing the old behavior name in `behaviorsSharedData`
* Search replace game JSON from "FlashOpacityTween" to "FlashOpacity"

Ok, I'll try and see if I can find a bug in the rename refactoring.

Don't spend much time on this; I could have broken it with a manual file edit.

@github-actions
Copy link
Contributor

github-actions bot commented Aug 6, 2023

Images automagically compressed by Calibre's image-actions

Compression reduced images by 22.8%, saving 18.67 KB.

Filename Before After Improvement Visual comparison
examples/flash-object/thumbnail.png 82.03 KB 63.36 KB -22.8% View diff

5426 images did not require optimisation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants