ImpowerGames / impower

An all-in-one, community-powered indie development platform that gives creative people the tools they need to bring their ideas to life.
https://www.impower.app
2 stars 1 forks source link

Last shown dialogue and portrait remains in preview screen when all dialogue is removed and play button is pressed. #155

Closed Wipeless closed 2 years ago

Wipeless commented 2 years ago

Describe the bug After playing a preview with dialogue, once all dialogue is removed it still remains in the preview box.

Steps To Reproduce

  1. Create a script with Dialogue
  2. Play the script
  3. Verify the Dialogue appears in the Preview Area
  4. Stop the script
  5. Remove the Dialogue
  6. Play the script
  7. Observe the Preview area

Expected Result Without any dialogue in the script, the preview screen should be empty.

Actual Result The last dialogue remains in the preview area.

Desktop (please complete the following information):

Additional context This can also be replicated with normal Text without a Dialogue command. Just have some text in the script, play it, and then remove it. The text will continue to be visible in the preview area after it's removed.

lovelle-cardoso commented 2 years ago

@Wipeless Fixed by 9a99683

Broderick-Colin commented 2 years ago

Last available image remains in the preview screen when all images are removed from the project

image

lovelle-cardoso commented 2 years ago

@LemBurnstein Fixed by f40f32a4

Wipeless commented 2 years ago

@LemBurnstein @lovelle-cardoso Is "portrait" different from "image"? Is [[image]] functional? Doesn't seem to work for me using this script:

# RootSection

CHARACTER
This is my house

[[house]]

CHARACTER
wow

^
lovelle-cardoso commented 2 years ago

@Wipeless portraits are specified inside dialogue blocks under the character name

CHARACTER [[happy]] This is my house

Images are specified outside of dialogue blocks. They should work. But I'll double check.

Wipeless commented 2 years ago

Gotcha. Seems to work with your example! How was this reference screenshot in this ticket generated? I'll keep on testing!

Broderick-Colin commented 2 years ago

Verified portraits are cleared in the game preview if you delete them in the editor and then press "Game Preview".

Also, verified dialogue was cleared in the game preview when I deleted it in the editor and then pressed "Game Preview".