- 12
- Posts
- 2
- Years
- Seen Oct 9, 2022
I'm trying to create at item that, when used from the bag or quick select, fades in to a picture in my graphics folder for a few seconds then fades out back to the bag or back to the overworld, whatever is easiest. I've tried looking at the Town Map for clues on how to code this but the Town Map has a lot of extra code attached to it, like dealing with flying, displaying different towns and routes, leaving messages on certain spots, etc. So far what I have is an item that, when used, will display the image but only after I've left the bag menu. I can still walk around and the image just stays there indefinitely.
Here is my code:
ItemHandlers::UseFromBag.add(:IMAGE, proc { |item|
$game_screen.pictures[1].show('Image', :CENTER, 250, 200, zoomX = 100, zoomY = 100, opacity = 255, blendType = 0)
})
Any help would be appreciated.
Here is my code:
ItemHandlers::UseFromBag.add(:IMAGE, proc { |item|
$game_screen.pictures[1].show('Image', :CENTER, 250, 200, zoomX = 100, zoomY = 100, opacity = 255, blendType = 0)
})
Any help would be appreciated.