VXACE - GALV's Invader Mini Game Modification for HUD Image

DoctorArtist

Time Splicer
Veteran
Joined
Nov 3, 2014
Messages
82
Reaction score
5
First Language
English
Primarily Uses
RMVXA
Hey there, needed a short little modification to GALV's Invader Minigame script. Basically, I was hoping someone could help me figure out how to add an extra image between the backdrop image and the score/health/power-up section. Basically, so I can put an image between those two layers to act as a HUD of sorts.

I don't quite get RUBY coding enough to do it myself, but I'd assume it'd take maybe five or six lines of coding to throw that in there, right?

Link to GALV's Invader Minigame: https://galvs-scripts.com/2013/03/18/invader-mini-game/

Any help would be deeply appreciated.

Also, I got Galv's permission to go to these forums to ask for help in this matter, go to the comments on that link and you'll find where he says to do just that because he's too busy to work on it.
 

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
22,299
Reaction score
11,712
First Language
English
Primarily Uses
RMVXA
'Scripts' is where people who have written scripts that they want to share with the community can post them.
[move]RGSS3 Script Requests[/move]
 

DoctorArtist

Time Splicer
Veteran
Joined
Nov 3, 2014
Messages
82
Reaction score
5
First Language
English
Primarily Uses
RMVXA
'Scripts' is where people who have written scripts that they want to share with the community can post them.
[move]RGSS3 Script Requests[/move]
My bad! Thank you very much. I actually thought I put it into requests and not directly into scripts. Whoopsies.
 

gregbaby

Evil Genius. o_O
Veteran
Joined
Jan 20, 2013
Messages
257
Reaction score
11
First Language
English
Primarily Uses
RMVXA
I second this! I'm using this mini game in my project too but that standard health bar be ugly!!! its a great script though!
 

DoctorArtist

Time Splicer
Veteran
Joined
Nov 3, 2014
Messages
82
Reaction score
5
First Language
English
Primarily Uses
RMVXA
I second this! I'm using this mini game in my project too but that standard health bar be ugly!!! its a great script though!
I know right? I've customized the background and I'm going to customize the ships soon too, but the HUD would be amazing to edit. I saw somewhere that someone had done it for a Final Fantasy-based game, saw a screenshot and they had figured it out, so it IS possible
 

Roninator2

Gamer
Veteran
Joined
May 22, 2016
Messages
2,660
Reaction score
563
First Language
English
Primarily Uses
RMVXA
What's the name of the game that did it?
 
Last edited:

Roninator2

Gamer
Veteran
Joined
May 22, 2016
Messages
2,660
Reaction score
563
First Language
English
Primarily Uses
RMVXA
I would have liked to see what it looked like. I don't see a picture of the invader mini game.
 

Sixth

Veteran
Veteran
Joined
Jul 4, 2014
Messages
2,162
Reaction score
822
First Language
Hungarian
Primarily Uses
RMVXA
There you go:
Code:
class Scene_Invaders < Scene_Base

  def init_back_new
    @back_new = Sprite.new
    @back_new.bitmap = Cache.space("filename_here") # Set the filename here
    @back_new.x = 0 # X position
    @back_new.y = 0 # Y position
    @back_new.z = 0 # Z level
    @back_new.opacity = 255 # Opacity ( from 0 to 255 )
  end
 
  alias add_back7725 create_backdrop
  def create_backdrop
    add_back7725
    init_back_new
  end
 
  alias disp_back9926 dispose_graphics
  def dispose_graphics
    disp_back9926
    @back_new.bitmap.dispose
    @back_new.dispose
  end
 
end
Put this right below Galv's mini-game script.
Change the filename to whatever name your image got. It is loaded from the same folder all the other images are in.
 

Roninator2

Gamer
Veteran
Joined
May 22, 2016
Messages
2,660
Reaction score
563
First Language
English
Primarily Uses
RMVXA
Awesome @Sixth , works well. Now I just realized that there are undisposed graphics in the original script. Need to figure that out.
invader1sprites.png
 

DoctorArtist

Time Splicer
Veteran
Joined
Nov 3, 2014
Messages
82
Reaction score
5
First Language
English
Primarily Uses
RMVXA
There you go:
Code:
class Scene_Invaders < Scene_Base

  def init_back_new
    @back_new = Sprite.new
    @back_new.bitmap = Cache.space("filename_here") # Set the filename here
    @back_new.x = 0 # X position
    @back_new.y = 0 # Y position
    @back_new.z = 0 # Z level
    @back_new.opacity = 255 # Opacity ( from 0 to 255 )
  end
 
  alias add_back7725 create_backdrop
  def create_backdrop
    add_back7725
    init_back_new
  end
 
  alias disp_back9926 dispose_graphics
  def dispose_graphics
    disp_back9926
    @back_new.bitmap.dispose
    @back_new.dispose
  end
 
end
Put this right below Galv's mini-game script.
Change the filename to whatever name your image got. It is loaded from the same folder all the other images are in.
Thanks a bunch! This is amazing!
Here's what I've worked on so far when it comes to the code you wrote for this. Again, I cannot thank you enough, you've opened the doors to limitless possibilities.
InvadersNewRegSize.png

Awesome @Sixth , works well. Now I just realized that there are undisposed graphics in the original script. Need to figure that out.
There's undisposed graphics in the original, eh? How interesting, I never knew that! o.o
 

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

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,864
Messages
1,017,056
Members
137,573
Latest member
nikisknight
Top