Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

> 


———
Before you ask! Read! ;)

You must have 30+ Posts to create a topic here!

Thanks for reading!
———

> RGSS Addon
Thallion
post May 18 2012, 06:26 AM
Post #1


Level 5
Group Icon

Group: Member
Posts: 68
Type: Scripter
RM Skill: Skilled
Rev Points: 10




Who here thinks that it would be a good idea to add on to the built in RGSS classes such as bitmap. Well, I'm starting doing it. So far I have added in several RGSS2 bitmap functions missing from RGSS.

Functions completed:

Bitmap:
draw_gradient(rectangle, color1, color2, gradient_type[, subtype])
rectangle - rectangle in which to draw gradient
color1, color2 - starting and ending colors
gradient_type:
0 - horizontal, 1 - vertical, 2 - diagonal, 3 - radial
subtype - for diagonal:
0 - top-left to bottom-right, 1 - top-right to bottom-left
- this method is very laggy, especially with anything other than horizontal or vertical
edit - horizontal and vertical don't lag much

draw_circle(rectangle, color[, border, border_size, border_color])
rectange - rectangle in which to draw circle
color - color of the circle
border - whether to draw a border (default false)
border_size - how large the border is (default 0)
border_color - color of the border (default black)
- this method doesn't lag as much as the gradient, but it still lags

blur
- this method only lags a bit compared to the other functions

sharpen
- this method lags a little more than blur

draw_line(x1, y1, x2, y2, color[, width])
x1, y1, x2, y2 - starting and ending coordinates of line
color - color in which to draw the line
width - thickness of the line
- barely any lag

draw_gradient_line(x1, y1, x2, y2, color1, color2[, width])
x1, y1, x2, y2 - starting and ending coordinates of line
color1, color2 - the colors with which to draw the line
width - thickness of the line
- not really any lag

draw_ellipse(rectangle, color[, border, border_size, border_color])
rectange - rectangle in which to draw ellipse
color - color of the ellipse
border - whether to draw a border (default false)
border_size - how large the border is (default 0)
border_color - color of the border (default black)
- this method doesn't lag as much as the gradient, but it still lags

Font:

shadow
set this to true if you want text to have a shadow
note - I modified the Bitmap class as well as font for this

Version 1.0

Link
https://rapidshare.com/files/478662831/test.exe

This post has been edited by Thallion: May 23 2012, 12:40 PM
Go to the top of the page
 
+Quote Post
   
 
Start new topic
Replies
Tsukihime
post May 18 2012, 01:42 PM
Post #2


Level 25
Group Icon

Group: Revolutionary
Posts: 561
Type: None
RM Skill: Undisclosed
Rev Points: 25




Hmm it's fine if it doesn't work. At least we have more bitmap options smile.gif


__________________________
My Scripts
Go to the top of the page
 
+Quote Post
   
Thallion
post May 21 2012, 12:37 PM
Post #3


Level 5
Group Icon

Group: Member
Posts: 68
Type: Scripter
RM Skill: Skilled
Rev Points: 10




Tsukihime, I finished the gradient bar. I sort of assumed that it was for a health bar, so right now I have a health bar on the map. The gradient is constantly changing and everything. Enjoy! Here's a link to the demo. Ignore the other characters in it, it's just a test project for me to try out scripts.

https://rapidshare.com/files/478662831/test.exe
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 - 12:10 AM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker