Announcement
Announcement
| 2nd Quarter Contest Announcement posted! See the Community Announcements section. |
![]() ![]() |
Jun 14 2010, 04:20 AM
Post
#1
|
|
![]() Type: Undisclosed |
IM trying to make my own phoenix wright game
|
|
|
|
Jun 14 2010, 04:32 AM
Post
#2
|
|
![]() I'm still smiling. My jaw hurts now. ![]() Type: Coder Alignment: Neutral Good |
here: CODE module SOWS ICON_SIZE = 24 # edit this to suit your icon sizes... end #============================================================================== # ** Window_Base #------------------------------------------------------------------------------ # This is a superclass of all windows in the game. #============================================================================== class Window_Base < Window #-------------------------------------------------------------------------- # * Draw Icon # icon_index : Icon number # x : draw spot x-coordinate # y : draw spot y-coordinate # enabled : Enabled flag. When false, draw semi-transparently. #-------------------------------------------------------------------------- def draw_icon(icon_index, x, y, enabled = true) bitmap = Cache.system("Iconset") rect = Rect.new(icon_index % 16 * SOWS::ICON_SIZE, icon_index / 16 * SOWS::ICON_SIZE, SOWS::ICON_SIZE, SOWS::ICON_SIZE) self.contents.blt(x, y, bitmap, rect, enabled ? 255 : 128) end end EDIT again: i just need to mention that you need to edit your iconset to the size you want... good luck on that ace attorney game.. i'll look forward to it. This post has been edited by SowS: Jun 14 2010, 08:40 AM -------------------- Spoiler: Scripts/Snippets: Exclude Player in Party | Bag Pockets |Custom Iconset Size | Moghunter's Title Screen forum elf - Gameover Screen | Shop Modes | NIS Designs Uno | Monster Breeding System |
|
|
|
Jun 17 2010, 10:25 PM
Post
#3
|
|
![]() Type: Undisclosed |
here: CODE module SOWS ICON_SIZE = 24 # edit this to suit your icon sizes... end #============================================================================== # ** Window_Base #------------------------------------------------------------------------------ # This is a superclass of all windows in the game. #============================================================================== class Window_Base < Window #-------------------------------------------------------------------------- # * Draw Icon # icon_index : Icon number # x : draw spot x-coordinate # y : draw spot y-coordinate # enabled : Enabled flag. When false, draw semi-transparently. #-------------------------------------------------------------------------- def draw_icon(icon_index, x, y, enabled = true) bitmap = Cache.system("Iconset") rect = Rect.new(icon_index % 16 * SOWS::ICON_SIZE, icon_index / 16 * SOWS::ICON_SIZE, SOWS::ICON_SIZE, SOWS::ICON_SIZE) self.contents.blt(x, y, bitmap, rect, enabled ? 255 : 128) end end EDIT again: i just need to mention that you need to edit your iconset to the size you want... good luck on that ace attorney game.. i'll look forward to it. im srry but do u mind helping me out on how to use this |
|
|
|
Jun 17 2010, 11:32 PM
Post
#4
|
|
![]() I'm still smiling. My jaw hurts now. ![]() Type: Coder Alignment: Neutral Good |
ugh...
1. edit the ICON_SIZE there into what you want 2. the iconset uses 24x24 icons, right? you'll need to edit your iconset to match ICON_SIZE... -------------------- Spoiler: Scripts/Snippets: Exclude Player in Party | Bag Pockets |Custom Iconset Size | Moghunter's Title Screen forum elf - Gameover Screen | Shop Modes | NIS Designs Uno | Monster Breeding System |
|
|
|
Jun 17 2010, 11:45 PM
Post
#5
|
|
![]() No method: 'stupid_title' found for 'nil:NilClass` ![]() Type: Coder Alignment: Chaotic Good |
Nvm
-------------------- My blog - It's awesome, I assure you
QUOTE While sloppy writing does not invariably mean sloppy thinking, we've generally found the correlation to be strong -- and we have no use for sloppy thinkers. If you can't yet write competently, learn to. - Eric Raymond ---![]() My awards for being so awesome Spoiler: |
|
|
|
Jun 17 2010, 11:47 PM
Post
#6
|
|
![]() Type: Undisclosed |
|
|
|
|
Jun 17 2010, 11:49 PM
Post
#7
|
|
![]() I'm still smiling. My jaw hurts now. ![]() Type: Coder Alignment: Neutral Good |
*sigh*
anywhere in the Materials section of your script editor... -------------------- Spoiler: Scripts/Snippets: Exclude Player in Party | Bag Pockets |Custom Iconset Size | Moghunter's Title Screen forum elf - Gameover Screen | Shop Modes | NIS Designs Uno | Monster Breeding System |
|
|
|
Jun 18 2010, 12:10 AM
Post
#8
|
|
![]() Type: Undisclosed |
|
|
|
|
Jun 18 2010, 12:15 AM
Post
#9
|
|
![]() Leader of the Monkey Mafia. ![]() Type: Designer Alignment: Lawful Good |
Why'd you request a script if you don't know how to use them?
-------------------- |
|
|
|
Jun 18 2010, 12:17 AM
Post
#10
|
|
![]() Type: Undisclosed |
|
|
|
|
Jun 18 2010, 03:52 AM
Post
#11
|
|
|
FRS_SgtMassacre ![]() Type: Designer Alignment: True Neutral |
and thats exactly what u do lol
-------------------- =======================================================================
Flesh Render Studios Ltd. Commercial Game Design Company ~~ Sign up and be part of the innovation today ======================================================================= Forum under construction (17/07/2011 hopefully finished 17/07/2011) :p ![]() Post Count-O-Meter Spoiler: Projects I Support:- Click To View Spoiler: |
|
|
|
Jun 18 2010, 05:02 AM
Post
#12
|
|
![]() Type: Undisclosed |
|
|
|
|
Jun 18 2010, 06:06 AM
Post
#13
|
|
![]() No method: 'stupid_title' found for 'nil:NilClass` ![]() Type: Coder Alignment: Chaotic Good |
*sigh* anywhere in the Materials section of your script editor... uhh thats not what he said o.o -------------------- My blog - It's awesome, I assure you
QUOTE While sloppy writing does not invariably mean sloppy thinking, we've generally found the correlation to be strong -- and we have no use for sloppy thinkers. If you can't yet write competently, learn to. - Eric Raymond ---![]() My awards for being so awesome Spoiler: |
|
|
|
Jun 18 2010, 01:25 PM
Post
#14
|
|
![]() I'm still smiling. My jaw hurts now. ![]() Type: Coder Alignment: Neutral Good |
maybe i should have said:
and thats exactly what u do lol -------------------- Spoiler: Scripts/Snippets: Exclude Player in Party | Bag Pockets |Custom Iconset Size | Moghunter's Title Screen forum elf - Gameover Screen | Shop Modes | NIS Designs Uno | Monster Breeding System |
|
|
|
Jun 18 2010, 02:04 PM
Post
#15
|
|
![]() Welcome to RMVX.net, B*tch ![]() Type: Designer Alignment: Chaotic Evil |
And then set ICON_SIZE = 70.
-------------------- |
|
|
|
Jun 18 2010, 06:17 PM
Post
#16
|
|
![]() ~Crazy Lazy Workaholic~ ![]() Type: Spriter Alignment: Chaotic Neutral |
I think his version doesn't have a "Materials" section. I know I've never seen one
It's anywhere above "Main Process" at the bottom and below "Scene_Gameover" -------------------- ![]() Spoiler: |
|
|
|
![]() ![]() |
| Lo-Fi Version | Time is now: 21st May 2013 - 04:39 PM |
|
|