Login / Registrieren
DE EN FR ES IT CZ
Zurück Nach oben

Need help displaying an image on screen

  • #1, by guus 8 months ago Zitieren
    Hi! I'm building a small adventure game with an interface and inventory interface like the curse of monkey island (coin-interface). At some point in the game the player can pick up a scroll, and once it's being used in the inventory I'd like the scroll to pop up on screen large, add some voice over, and have it disappear when the player clicks a mouse button.

    I'm having trouble doing it, also because the scroll needs to be open-able on every scene, and some scenes have a wider background than the actual resolution (to create a scrollable background when the player walks to the edges of the screen).  I'm not very good with Lua, so my coding skills are limited. 

    I've added some screenshots: one of the scroll in the inventory and another with the result I want to achieve. What's the best way to tackle this?
  • #2, by esmeralda 8 months ago Zitieren
    make it an interface.
    if you use a transparent background the size of the game resolution it will also block all input, so the character won't walk anywhere while the interface with the scroll is visible.
  • #3, by guus 8 months ago Zitieren
    Ofcourse! That did the trick. Thanks!