DoctorArtist

Time Splicer
Veteran
Joined
Nov 3, 2014
Messages
82
Reaction score
6
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,315
Reaction score
11,737
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
6
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
6
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
3,132
Reaction score
707
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
3,132
Reaction score
707
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.
 

DoctorArtist

Time Splicer
Veteran
Joined
Nov 3, 2014
Messages
82
Reaction score
6
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.
https://rpgmaker.net/games/4071/images/51498/
There's the direct link to the picture's entry on that game page, and here's the actual picture itself.
Airship_Assault.PNG
 

Sixth

Veteran
Veteran
Joined
Jul 4, 2014
Messages
2,200
Reaction score
848
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
3,132
Reaction score
707
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
6
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
 

Latest Threads

Latest Profile Posts

Rakon wrote on xizorandy's profile.
Hello! I found a post of lightning strike pictures you posted. You said you made them, am I allowed to use them in my commercial project. Would be really cool!^^
evhht2zr.png

Have a nice day!
It's almost 3 month and this piece of drawing is still not finished yet.
aaaa.jpg

Really busy with other stuffs like commission and coping with personal problem.
Stella & Elyune, maybe used for promotional art if my game project finished one day.
My ex put my heart upon a self he said don't give me no lines and keep my hands to myself :,(
An Old... old Harold | RPG Maker News #71

Forum statistics

Threads
112,249
Messages
1,066,822
Members
145,856
Latest member
garima
Top