Bubble Animation Over Characters Head When You Press The Check Button

Neo_Kum0rius_6000

Not Your Ordinary Guy!
Veteran
Joined
Nov 8, 2017
Messages
196
Reaction score
349
First Language
english
Primarily Uses
RMVXA
So I was playing Cavestory the other day and I love on how when you press the action button the main character "Quote"
gets an exclamation point over his head... I would love to recreate something like that in my game where if you press the Z button a bubble effect appears over the hero's head. I only want this to happen to the hero in front not the followers.

It would also be nice if a sound would play...
But beggars can't be choosy :D
 

A-Moonless-Night

WINTER IS COMING
Veteran
Joined
Mar 17, 2012
Messages
681
Reaction score
446
First Language
English
Primarily Uses
RMVXA
You could probably do this easily with events, but here you go:
Code:
class Scene_Map < Scene_Base
  alias amn_quote_scenemap_updatescene  update_scene
  def update_scene
    amn_quote_scenemap_updatescene
    update_call_balloon unless scene_changing?
  end
 
  def update_call_balloon
    if Input.trigger?(:C)
      RPG::SE.new("Cat", 90, 100).play  # "File name", volume, pitch
      $game_player.balloon_id = 1       # change integer as needed
    end
  end
end
 

Neo_Kum0rius_6000

Not Your Ordinary Guy!
Veteran
Joined
Nov 8, 2017
Messages
196
Reaction score
349
First Language
english
Primarily Uses
RMVXA
You could probably do this easily with events, but here you go:
Code:
class Scene_Map < Scene_Base
  alias amn_quote_scenemap_updatescene  update_scene
  def update_scene
    amn_quote_scenemap_updatescene
    update_call_balloon unless scene_changing?
  end
 
  def update_call_balloon
    if Input.trigger?(:C)
      RPG::SE.new("Cat", 90, 100).play  # "File name", volume, pitch
      $game_player.balloon_id = 1       # change integer as needed
    end
  end
end
Thanks for making this for me it means alot!
 

Neo_Kum0rius_6000

Not Your Ordinary Guy!
Veteran
Joined
Nov 8, 2017
Messages
196
Reaction score
349
First Language
english
Primarily Uses
RMVXA
You could probably do this easily with events, but here you go:
Code:
class Scene_Map < Scene_Base
  alias amn_quote_scenemap_updatescene  update_scene
  def update_scene
    amn_quote_scenemap_updatescene
    update_call_balloon unless scene_changing?
  end
 
  def update_call_balloon
    if Input.trigger?(:C)
      RPG::SE.new("Cat", 90, 100).play  # "File name", volume, pitch
      $game_player.balloon_id = 1       # change integer as needed
    end
  end
end
Though... Would it be too hard to ask to make so that the sound only plays once?
Until the bubble goes away. So that you can't spam the Z key and hear the noise..
It also wouldn't hurt to have a switch were I could disable it this script...
 
Last edited:

A-Moonless-Night

WINTER IS COMING
Veteran
Joined
Mar 17, 2012
Messages
681
Reaction score
446
First Language
English
Primarily Uses
RMVXA
Code:
class Scene_Map < Scene_Base
  alias amn_quote_scenemap_updatescene  update_scene
  def update_scene
    amn_quote_scenemap_updatescene
    update_call_balloon unless scene_changing?
  end
 
  def update_call_balloon
    if Input.trigger?(:C) && $game_switches[1]  # change integer as needed
      RPG::SE.new("Cat", 90, 100).play unless $game_player.balloon_id > 0  # "File name", volume, pitch
      $game_player.balloon_id = 1       # change integer as needed
    end
  end
end
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

This is relevant so much I can't even!
Frostorm wrote on Featherbrain's profile.
Hey, so what species are your raptors? Any of these?
... so here's my main characters running around inside "Headspace", a place people use as a safe place away from anxious/panic related thinking.
Stream will be live shortly! I will be doing some music tonight! Feel free to drop by!
Made transition effects for going inside or outside using zoom, pixi filter, and a shutter effect

Forum statistics

Threads
105,999
Messages
1,018,220
Members
137,778
Latest member
lifehoroscopee
Top