my new battle system (screen shots and feedback)

Started by Ryex, May 19, 2009, 11:02:33 pm

Previous topic - Next topic

G_G


fugibo

Quote from: Blizzard on June 02, 2009, 03:47:37 am
Quote from: game_guy on June 02, 2009, 12:05:36 am
add a game system thing than

class Game_System
  attr_accessor :alignment
  attr_accessor :commandwindow
  alias battle_system_config initialize
  def initialize
    battle_system_config
    @alignment = 0, 1, or 2 # 0 = center, 1 = left, 2 = right
    @commandwindow = 0 or 1 # 0 = horizontal 1 = vertical
  end
end



This is what I always do. :P


That's what all the scripters that have learned from you do, too. It's kinda a popular technique here :P

Ryex

@Calintz what is you opinion of the mock up?
I no longer keep up with posts in the forum very well. If you have a question or comment, about my work, or in general I welcome PM's. if you make a post in one of my threads and I don't reply with in a day or two feel free to PM me and point it out to me.<br /><br />DropBox, the best free file syncing service there is.<br />

Calintz

No, you aren't bugging me Ryex.

I had thought I had replied to this though. I like the way it matches, but perhaps a separate windowskin that looks similar, but has a slightly bigger border would suffice.

Ryex

I no longer keep up with posts in the forum very well. If you have a question or comment, about my work, or in general I welcome PM's. if you make a post in one of my threads and I don't reply with in a day or two feel free to PM me and point it out to me.<br /><br />DropBox, the best free file syncing service there is.<br />

Seox

I can read it just fine, but that white on HP/SP bars which reads HP/SP/and the numbers clashes a bit. You might wanna tint it, or make the font smaller. It seems like the edges of the bars are what interfere. Understand what I'm saying? I know it was a bit wordy ><

By the way, how did you script a bar? I'm working on a sprint script, and I've been wanting to make a bar for a LOOOONG time now....any pointers?
... (<<<<<<<<<<<<<<< TEH DOTS OF DOOM. Hey, kinda catchy. :naughty:)

Ryex

I no longer keep up with posts in the forum very well. If you have a question or comment, about my work, or in general I welcome PM's. if you make a post in one of my threads and I don't reply with in a day or two feel free to PM me and point it out to me.<br /><br />DropBox, the best free file syncing service there is.<br />

Seox

Yes, like the HP and SP bars. It seems easy to do using pictures, but that'd look choppy, so scripting would be MUCH smoother. I've seen it done, but not MADE. Any ideas?
... (<<<<<<<<<<<<<<< TEH DOTS OF DOOM. Hey, kinda catchy. :naughty:)

Ryex

Spoiler: ShowHide

#==============================================================================
#  New methods added to Bitmap
#==============================================================================
class Bitmap
 def draw_bar_ryex(x, y, w, h, p, c)
   # creates colors
   gray = Color.new(100, 100, 100)
   white = Color.new(255, 255, 255)
   # dwraws a black rectangle
   fill_rect(x, y, w, h, Color.new(0, 0, 0))
   #starts a loop from 0 to but not including h-1 this creates the back ground of the bar
   for i in 0...(h - 1)
     gr = gray.red * i / (h - 1)  #takes the red value of the gray color (100 in this case) and mulyaplies it by a persitege making it daker every iteration of the loop
     gg = gray.green * i / (h - 1) #dose the same for the green value
     gb = gray.blue * i / (h - 1) # and the same for the red value
     fill_rect(x + 1, y + h - i - 1, w - 2, 1, Color.new(gr, gg, gb)) # draws a rectangle 1 pixel high with the new rgb values
   end
   # draws the bottom of the bar as long as a % of the total width
   for i in 0...(h / 2)
     r = c.red * i / (h / 2)
     g = c.green * i / (h / 2)
     b = c.blue * i / (h / 2)
     fill_rect(x + 1, y + h - i - 1, p * (w - 2), 1, Color.new(r, g, b))
   end
   # draws the top of the bar as long as a % of the total width
   for i in 0...(h / 2 - 1)
     r = c.red + (white.red - c.red) * i / (h / 2 - 1)
     g = c.green + (white.green - c.green) * i / (h / 2 - 1)
     b = c.blue + (white.blue - c.blue) * i / (h / 2 - 1)
     fill_rect(x + 1, y + (h / 2 - 1) - i, p * (w - 2), 1, Color.new(r, g, b))
   end
 end
end



then I use this too


 def draw_actor_hp_bar_ryex(x, y, m, actor)
   h = 12 #sets the height of the bar
   p = actor.hp.to_f / actor.maxhp #gets the % of the total hp the actor has
   c = Color.new(255, 0, 0) #sets the color of the bar
   self.bitmap.draw_bar_ryex(x, y, m, h, p, c) # draws the bar
 end
i commented my code just for you
I no longer keep up with posts in the forum very well. If you have a question or comment, about my work, or in general I welcome PM's. if you make a post in one of my threads and I don't reply with in a day or two feel free to PM me and point it out to me.<br /><br />DropBox, the best free file syncing service there is.<br />

G_G


Ryex

thin of it like this if this were a video game and you looked it up on game spot the released date would be TBA. that answer you question?
I no longer keep up with posts in the forum very well. If you have a question or comment, about my work, or in general I welcome PM's. if you make a post in one of my threads and I don't reply with in a day or two feel free to PM me and point it out to me.<br /><br />DropBox, the best free file syncing service there is.<br />

Calintz

Hmm, I can't tell what they will actually look like without screenshots bud.

Ryex

I no longer keep up with posts in the forum very well. If you have a question or comment, about my work, or in general I welcome PM's. if you make a post in one of my threads and I don't reply with in a day or two feel free to PM me and point it out to me.<br /><br />DropBox, the best free file syncing service there is.<br />

fugibo

Yum, double-gradient, first from whitish to red, then red to blackish. Yum! :P

Calintz


Seox

Quote from: Ryexander on June 09, 2009, 09:32:05 pm
Spoiler: ShowHide

#==============================================================================
#  New methods added to Bitmap
#==============================================================================
class Bitmap
 def draw_bar_ryex(x, y, w, h, p, c)
   # creates colors
   gray = Color.new(100, 100, 100)
   white = Color.new(255, 255, 255)
   # dwraws a black rectangle
   fill_rect(x, y, w, h, Color.new(0, 0, 0))
   #starts a loop from 0 to but not including h-1 this creates the back ground of the bar
   for i in 0...(h - 1)
     gr = gray.red * i / (h - 1)  #takes the red value of the gray color (100 in this case) and mulyaplies it by a persitege making it daker every iteration of the loop
     gg = gray.green * i / (h - 1) #dose the same for the green value
     gb = gray.blue * i / (h - 1) # and the same for the red value
     fill_rect(x + 1, y + h - i - 1, w - 2, 1, Color.new(gr, gg, gb)) # draws a rectangle 1 pixel high with the new rgb values
   end
   # draws the bottom of the bar as long as a % of the total width
   for i in 0...(h / 2)
     r = c.red * i / (h / 2)
     g = c.green * i / (h / 2)
     b = c.blue * i / (h / 2)
     fill_rect(x + 1, y + h - i - 1, p * (w - 2), 1, Color.new(r, g, b))
   end
   # draws the top of the bar as long as a % of the total width
   for i in 0...(h / 2 - 1)
     r = c.red + (white.red - c.red) * i / (h / 2 - 1)
     g = c.green + (white.green - c.green) * i / (h / 2 - 1)
     b = c.blue + (white.blue - c.blue) * i / (h / 2 - 1)
     fill_rect(x + 1, y + (h / 2 - 1) - i, p * (w - 2), 1, Color.new(r, g, b))
   end
 end
end



then I use this too


 def draw_actor_hp_bar_ryex(x, y, m, actor)
   h = 12 #sets the height of the bar
   p = actor.hp.to_f / actor.maxhp #gets the % of the total hp the actor has
   c = Color.new(255, 0, 0) #sets the color of the bar
   self.bitmap.draw_bar_ryex(x, y, m, h, p, c) # draws the bar
 end
i commented my code just for you


Wow, dude! Exactly what I needed, thanks ^_^

*powers up*
... (<<<<<<<<<<<<<<< TEH DOTS OF DOOM. Hey, kinda catchy. :naughty:)

Ryex

Quote from: WcW on June 09, 2009, 10:40:44 pm
Yum, double-gradient, first from whitish to red, then red to blackish. Yum! :P

you like? :)
I no longer keep up with posts in the forum very well. If you have a question or comment, about my work, or in general I welcome PM's. if you make a post in one of my threads and I don't reply with in a day or two feel free to PM me and point it out to me.<br /><br />DropBox, the best free file syncing service there is.<br />

Arkaea Halfdemon

This looks absolutely amazing. I would kill to have my battles look like this. That, with a 3d cam, plus whatever I can come up with, is going to be fairly awesomesauce.

I'm now eagerly awaiting updates  :P

... Oh, by the way, I support the idea that your script should support using character sets as well as/instead of battlers. I'm using character sets already, because I, like many others, have BDS (Battler Defficiency Syndrome). So hard to find good ones these days... I'll have to dig up some of my ancient projects to harvest a few, soon. And post a few, too.


And... check out what I did to the RTP "Butler":
Spoiler: ShowHide

Now young, sunglassesy, and open-shirted  8)

Ryex

ok updates:

so far here are the features the first release will have:


  • the above layout (it have changed a bit ane will proably change more stay tuned for updates

  • a modified version of 'Animated Battlers for Non-Action BS' from tones the will support poses



features that may come after


  • a modified version/plugin for KGC's 3D Pseudo Battle Cam

  • support for using charsets

  • <INSERT SEGESTION HERE>

I no longer keep up with posts in the forum very well. If you have a question or comment, about my work, or in general I welcome PM's. if you make a post in one of my threads and I don't reply with in a day or two feel free to PM me and point it out to me.<br /><br />DropBox, the best free file syncing service there is.<br />

Arkaea Halfdemon

Quote from: Ryexander on June 19, 2009, 04:30:27 pm
ok updates:

so far here are the features the first release will have:


  • the above layout (it have changed a bit ane will proably change more stay tuned for updates

  • a modified version of 'Animated Battlers for Non-Action BS' from tones the will support poses



features that may come after


  • a modified version/plugin for KGC's 3D Pseudo Battle Cam

  • support for using charsets

  • <INSERT SEGESTION HERE>




Well, if it can be compatible with Blizzard's Soul Systems(which is should...), perhaps you could make the status windows bigger, to make room for the 'sr' bar, without the status indicator obscuring it. Or, if possible, you could move the status indicator beside the name, and hopefully change the size and font for it... it would look really out of place as it is. Then the window could retain its smallness...

Also, perhaps you could include an option to display the battlers at the top. This isn't all that important, because I could always do that in the sprite itself, myself, but perhaps someone else would like that.

Wondering, though, how the soul systems will work out here. My game is pretty dependant on it, what with the limit sys being close to the story, and all. So compatability is a must for me, and most people on these boards, I believe. Perhaps you an Blizz can discuss it.


Now, if I can remember the things I used to know, I'll be able to edit the system's window placement and such for myself. It's not that hard, really. So don't you worry about anyone if they don't like where the command menu is, for example :P.