Jump to content


Photo

Ruby/RGSS3 questions that don't deserve their own thread


  • Please log in to reply
1810 replies to this topic

#1801 Rikifive

Rikifive

    %M4R3#E4T@G0 � � �

  • Ace Member
  • 1,528 posts
  • LocationEquestria        Status - Ponified         Known as - ╟╖ Chair-man First Language - Polish
  • RM Skill - Game Developer

Posted 24 August 2015 - 08:00 PM

I just made them for testing purposes, in seriousness - I wanted to make a 664 x 504 window to make it completely full screen.

Also... what do you mean by sprites?


0ls22SP.png
h69sNQJ.pngtn2U8pB.gifkogNtPF.gif
oZkYkOD.pngUNvpr2F.gif
sIOqpCW.pngr15oafX.gifJUCLScl.gifJUCLScl.gif

UiW5wib.png

Spoiler

MsE44f2.png
zexeriA.pngCrystal Heart Click the heart for details.
7cNgUK0.png
0kvZ4lp.pngsfLEpSF.png

#1802 KilloZapit

KilloZapit

    FAIRY DUST! FAIRY DUST FOR EVERYONE! WHEE!

  • Ace Member
  • 1,526 posts
  • LocationFairyland!
  • RM Skill - Coder

Posted 24 August 2015 - 08:12 PM

I mean the Sprite class, like pictures or characters or stuff. You might wanna look at the RGSS Built-in Classes in the help file. At it's most basic you can just use them to put random pictures wherever you want on the screen.



#1803 Rikifive

Rikifive

    %M4R3#E4T@G0 � � �

  • Ace Member
  • 1,528 posts
  • LocationEquestria        Status - Ponified         Known as - ╟╖ Chair-man First Language - Polish
  • RM Skill - Game Developer

Posted 24 August 2015 - 08:20 PM

I didn't knew about such a thing, but I think I'll stick to standard methods. =P


0ls22SP.png
h69sNQJ.pngtn2U8pB.gifkogNtPF.gif
oZkYkOD.pngUNvpr2F.gif
sIOqpCW.pngr15oafX.gifJUCLScl.gifJUCLScl.gif

UiW5wib.png

Spoiler

MsE44f2.png
zexeriA.pngCrystal Heart Click the heart for details.
7cNgUK0.png
0kvZ4lp.pngsfLEpSF.png

#1804 KilloZapit

KilloZapit

    FAIRY DUST! FAIRY DUST FOR EVERYONE! WHEE!

  • Ace Member
  • 1,526 posts
  • LocationFairyland!
  • RM Skill - Coder

Posted 24 August 2015 - 08:30 PM

What you are doing can hardly be called "standard methods", but good luck! *sprinkles fairy dust on you*


Edited by KilloZapit, 24 August 2015 - 08:30 PM.


#1805 Rikifive

Rikifive

    %M4R3#E4T@G0 � � �

  • Ace Member
  • 1,528 posts
  • LocationEquestria        Status - Ponified         Known as - ╟╖ Chair-man First Language - Polish
  • RM Skill - Game Developer

Posted 25 August 2015 - 03:13 AM

LOL that bad? xD

So... would you care to explain me how the 'sprite' way looks like, how it works and what is the difference? =3

 

(Yay! Fairy dust! =3)


Edited by Rikifive, 25 August 2015 - 03:13 AM.

0ls22SP.png
h69sNQJ.pngtn2U8pB.gifkogNtPF.gif
oZkYkOD.pngUNvpr2F.gif
sIOqpCW.pngr15oafX.gifJUCLScl.gifJUCLScl.gif

UiW5wib.png

Spoiler

MsE44f2.png
zexeriA.pngCrystal Heart Click the heart for details.
7cNgUK0.png
0kvZ4lp.pngsfLEpSF.png

#1806 KilloZapit

KilloZapit

    FAIRY DUST! FAIRY DUST FOR EVERYONE! WHEE!

  • Ace Member
  • 1,526 posts
  • LocationFairyland!
  • RM Skill - Coder

Posted 25 August 2015 - 05:04 AM

Sprites are just a picture on the screen. They don't have borders or arrows or cursors or anything and just display a bitmap directly. You can do a lot more with sprites then you can do with windows, rotating them, scaling them, doing funky wave effects... stuff like that. Of course all the menu selection stuff and default drawing of info is built into Window subclasses but you will probably have to rewrite all of that anyway. No reason you can't use some windows (borderless or not) and some sprites though. The best and simplest use of sprites in the default script is in Scene_Title (I think that was it's name, the title screen). It just creates sprites for the background and makes one window and that's it.

 

Also using sprites and maybe a few windows is often a better idea then drawing everything to one big image, it's much easier to update them individually and makes the script more modular. You can even make every window use it's own window skin if you want, some with blank borders.


Edited by KilloZapit, 25 August 2015 - 05:10 AM.


#1807 Rikifive

Rikifive

    %M4R3#E4T@G0 � � �

  • Ace Member
  • 1,528 posts
  • LocationEquestria        Status - Ponified         Known as - ╟╖ Chair-man First Language - Polish
  • RM Skill - Game Developer

Posted 25 August 2015 - 05:25 AM

Hmm.. I don't need anything fancy, just easily draw text/icons/pictures in it, update playtime and stuff.

 

WtvmtpT.png

And All of my windows are transparent.

I'm planning to make something like this:

Spoiler

I'm wondering if I should make multiple windows (marked in red) or to make just one (marked in green).

 

WtvmtpT.png

OKAY, so I did 2 windows for all that stuff - merged 4th and 5th together and and 6th will be alone, due to refreshing.

So.. it's solved.


Edited by Rikifive, 25 August 2015 - 10:17 AM.

0ls22SP.png
h69sNQJ.pngtn2U8pB.gifkogNtPF.gif
oZkYkOD.pngUNvpr2F.gif
sIOqpCW.pngr15oafX.gifJUCLScl.gifJUCLScl.gif

UiW5wib.png

Spoiler

MsE44f2.png
zexeriA.pngCrystal Heart Click the heart for details.
7cNgUK0.png
0kvZ4lp.pngsfLEpSF.png

#1808 KilloZapit

KilloZapit

    FAIRY DUST! FAIRY DUST FOR EVERYONE! WHEE!

  • Ace Member
  • 1,526 posts
  • LocationFairyland!
  • RM Skill - Coder

Posted 25 August 2015 - 10:26 AM

Yeah, it's just easier not to have to clear the whole image and redraw it every frame, which is what you pretty much will have to do if you do it that way.

#1809 Rikifive

Rikifive

    %M4R3#E4T@G0 � � �

  • Ace Member
  • 1,528 posts
  • LocationEquestria        Status - Ponified         Known as - ╟╖ Chair-man First Language - Polish
  • RM Skill - Game Developer

Posted 25 August 2015 - 11:24 AM

I have gold, location, picture of current location and playtime in one window - where only playtime is updated each second - the rest is fixed and works perfectly.

In the second window I have drawn ponies - that window refreshes ONLY when the formation is changed. (I spend so much time on making it refresh only if formation is changed - and when I realized, that I was thinking correctly all the time then *TRIPLE FACE PALM*.

There's nothing updated for no reason, it's as much simple as possible. It should not be bad.

Everything is correctly made I think. =]


0ls22SP.png
h69sNQJ.pngtn2U8pB.gifkogNtPF.gif
oZkYkOD.pngUNvpr2F.gif
sIOqpCW.pngr15oafX.gifJUCLScl.gifJUCLScl.gif

UiW5wib.png

Spoiler

MsE44f2.png
zexeriA.pngCrystal Heart Click the heart for details.
7cNgUK0.png
0kvZ4lp.pngsfLEpSF.png

#1810 KilloZapit

KilloZapit

    FAIRY DUST! FAIRY DUST FOR EVERYONE! WHEE!

  • Ace Member
  • 1,526 posts
  • LocationFairyland!
  • RM Skill - Coder

Posted 25 August 2015 - 12:17 PM

Neato! I guess you have it handled then...

You know what that means...

*sprinkles fairy dust on you*

#1811 Rikifive

Rikifive

    %M4R3#E4T@G0 � � �

  • Ace Member
  • 1,528 posts
  • LocationEquestria        Status - Ponified         Known as - ╟╖ Chair-man First Language - Polish
  • RM Skill - Game Developer

Posted 25 August 2015 - 12:27 PM

YAY! What a reward! ^^ Thank you! =3


0ls22SP.png
h69sNQJ.pngtn2U8pB.gifkogNtPF.gif
oZkYkOD.pngUNvpr2F.gif
sIOqpCW.pngr15oafX.gifJUCLScl.gifJUCLScl.gif

UiW5wib.png

Spoiler

MsE44f2.png
zexeriA.pngCrystal Heart Click the heart for details.
7cNgUK0.png
0kvZ4lp.pngsfLEpSF.png




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users