Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

 
Reply to this topicStart new topic
> Battler Overlay, For the Basic XP Battle System
kaimonkey
post Jul 1 2011, 01:09 PM
Post #1


Level 11
Group Icon

Group: Revolutionary
Posts: 193
Type: Scripter
RM Skill: Beginner




I'm just trying to make a simple script, but I need to overlay an image (or another battler) over each battler in battle. I'm just having a quick look to see if there is a simple way I can see to do this buy fingerling with the sprite_battler, game_battler, or scene_battle code.

Is this possible? Or more importantly is this simple? This isn't a request, so I won't go into detail, all I'm after is somebody to say "Oh, try changing this function within this class, and do whatever you were going to do"

Thanks for the help.
Go to the top of the page
 
+Quote Post
   
Night_Runner
post Jul 2 2011, 05:55 AM
Post #2


Level 50
Group Icon

Group: +Gold Member
Posts: 1,528
Type: Scripter
RM Skill: Undisclosed




I'd edit Sprite_Battler's update method.

List of necessary changes
Change from this:


to something like this:


and you can simply make an overlay image smile.gif
The main bit of code is the blt, the block transfer, which overlays the overlay_bitmap over the existing bitmap, at x, y = 0, 0, and the transferred overlay is at 100 opacity (100/255)


__________________________
K.I.S.S.
Want help with your scripting problems? Upload a demo! Or at the very least; provide links to the scripts in question.

Most important guide ever: Newbie's Guide to Switches
Go to the top of the page
 
+Quote Post
   
kaimonkey
post Jul 2 2011, 11:20 AM
Post #3


Level 11
Group Icon

Group: Revolutionary
Posts: 193
Type: Scripter
RM Skill: Beginner





Thanks, that's a huge help. I will be able to finish my simple little script now. I'll edit this when it's finished, and post it. Thanks!
Go to the top of the page
 
+Quote Post
   

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 25th May 2013 - 09:27 PM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker