Tsukihime 1,489 Posted September 3, 2012 (edited) Icon balloons -Tsukihime This script displays a balloon above your character. It is the same idea as the default balloons, except it draws an icon. The icons are still-images though. Usage Place the "Icon-Balloon.png" file inside Graphics/System Script call: show_icon_balloon(char_id, icon_index, wait?) where `char_id` is the character on the map (-1 = player, 0 = this event, 1+ is specific event ID) `icon_index` is the index of the icon `wait` is a boolean representing whether the game should wait until the balloon disappears Download Script: Download here Notes There are three hardcoded methods in Sprite_Character -initialize -dispose -update Each of them adds a new line to handle the icon balloon. If it is not compatible with your scripts because you are using animation scripts as well, just delete these three methods and modify your script to handle the icon balloon. Edited March 30, 2016 by Tsukihime 1 Share this post Link to post Share on other sites
Falcao 88 Posted September 3, 2012 It look great But why you didnt alias those harcode methods intead of overwrite them? Share this post Link to post Share on other sites
Tsukihime 1,489 Posted September 3, 2012 Couldn't figure out how to alias. Share this post Link to post Share on other sites
Victor Sant 273 Posted September 3, 2012 (edited) You forgot to add the superclass of Sprite_Character class Sprite_Character < Sprite_Base alias :th_icon_balloon_initialize :initialize def (viewport, character = nil) @icon_balloon_duration = 0 th_icon_balloon_initialize(viewport, character) end alias :th_icon_balloon_dispose :dispose def dispose th_icon_balloon_dispose end_icon_balloon end alias :th_icon_balloon_update :update def update th_icon_balloon_update update_icon_balloon end end Edited September 3, 2012 by Victor Sant Share this post Link to post Share on other sites
Tsukihime 1,489 Posted September 3, 2012 Is there a difference between updating the balloon before or after the `setup_new_effect` call in `update`? Share this post Link to post Share on other sites
EvelynNoSpaces 0 Posted September 3, 2012 Icons are sticking to the speech bubble and they start overlapping. Share this post Link to post Share on other sites
Tsukihime 1,489 Posted September 3, 2012 Screenshot? It doesn't seem different from before. Share this post Link to post Share on other sites
Gone away 0 Posted November 21, 2012 Second - icons are just overlapping. Each time a different icon is shown, it shows ON TOP of the previous icon displayed. You not disposing them correctly? This script is pretty essential to my game, but I'm not able to use it 'cause of this bug so please look into it! Share this post Link to post Share on other sites