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

Discussion in 'RGSS3 Script Requests' started by DoctorArtist, Aug 10, 2017.

  1. DoctorArtist

    DoctorArtist Time Splicer Veteran

    Messages:
    79
    Likes Received:
    5
    Location:
    The Portum Gates
    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.
     
    #1
  2. Kes

    Kes Global Moderators Global Mod

    Messages:
    20,386
    Likes Received:
    10,410
    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.

    I've moved this thread to RGSS3 Script Requests. Please be sure to post your threads in the correct forum next time. Thank you.

     
    #2
  3. DoctorArtist

    DoctorArtist Time Splicer Veteran

    Messages:
    79
    Likes Received:
    5
    Location:
    The Portum Gates
    First Language:
    English
    Primarily Uses:
    RMVXA
    My bad! Thank you very much. I actually thought I put it into requests and not directly into scripts. Whoopsies.
     
    #3
  4. gregbaby

    gregbaby Evil Genius. o_O Veteran

    Messages:
    255
    Likes Received:
    11
    Location:
    The world.
    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!
     
    #4
    DoctorArtist likes this.
  5. DoctorArtist

    DoctorArtist Time Splicer Veteran

    Messages:
    79
    Likes Received:
    5
    Location:
    The Portum Gates
    First Language:
    English
    Primarily Uses:
    RMVXA
    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
     
    #5
  6. Roninator2

    Roninator2 Gamer Veteran

    Messages:
    1,586
    Likes Received:
    348
    Location:
    Canada
    First Language:
    English
    Primarily Uses:
    RMVXA
    What's the name of the game that did it?
     
    Last edited: Aug 15, 2017
    #6
  7. DoctorArtist

    DoctorArtist Time Splicer Veteran

    Messages:
    79
    Likes Received:
    5
    Location:
    The Portum Gates
    First Language:
    English
    Primarily Uses:
    RMVXA
    #7
  8. Roninator2

    Roninator2 Gamer Veteran

    Messages:
    1,586
    Likes Received:
    348
    Location:
    Canada
    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.
     
    #8
  9. DoctorArtist

    DoctorArtist Time Splicer Veteran

    Messages:
    79
    Likes Received:
    5
    Location:
    The Portum Gates
    First Language:
    English
    Primarily Uses:
    RMVXA
    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.
    [​IMG]
     
    #9
  10. DoctorArtist

    DoctorArtist Time Splicer Veteran

    Messages:
    79
    Likes Received:
    5
    Location:
    The Portum Gates
    First Language:
    English
    Primarily Uses:
    RMVXA
    Bumpity-bump?
     
    #10
  11. Sixth

    Sixth Veteran Veteran

    Messages:
    2,122
    Likes Received:
    792
    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.
     
    #11
    DoctorArtist likes this.
  12. Roninator2

    Roninator2 Gamer Veteran

    Messages:
    1,586
    Likes Received:
    348
    Location:
    Canada
    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
     
    #12
  13. DoctorArtist

    DoctorArtist Time Splicer Veteran

    Messages:
    79
    Likes Received:
    5
    Location:
    The Portum Gates
    First Language:
    English
    Primarily Uses:
    RMVXA
    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

    There's undisposed graphics in the original, eh? How interesting, I never knew that! o.o
     
    #13

Share This Page