Print command is a support tool, not an actual goal, keep it away from actual scripting code unless you need it for debugging or throwing error messages at people XD. Really, people complain about them a lot. Learn how to use game windows or sprites for displaying disclaimers or timers or silly greetings.
class Sprite_MakeFunOfSiletrea < Sprite
def initialize(x, y, width, lines)
super(Viewport.new(x, y, width, lines * 28))
self.bitmap = bit = Bitmap.new(width, lines * 28)
bit.draw_text(4, 4, width-8, 24, 'XP')
end
end
Now you've got a sprite that's sticking its tongue out XD
What's a Viewport? It's like a window glass or screen that lets you see what's inside, that's why it needs x and y coordinates, width and height. Unlike cameras, you're not supposed to move it at all, but move its contents instead.
Bitmap handles drawings, it's a collection of colored or transparent bits or dots that allow you to display text or even so called cute fakemon (a lame way to use it indead). In this case it needs a width and some height. Later you can call its draw_text method to tell it in its ears that it should print that emoticon on screen. You need to pass x, y, width, a line height, text, and sometimes a number additionally to align it to your right hand side or center it.
class Sprite_MakeFunOfSiletrea < Sprite
def initialize(x, y, width, lines)
super(Viewport.new(x, y, width, lines * 28))
self.bitmap = bit = Bitmap.new(width, lines * 28)
bit.draw_text(4, 4, width-8, 24, 'XP')
end
end
Now you've got a sprite that's sticking its tongue out XD
What's a Viewport? It's like a window glass or screen that lets you see what's inside, that's why it needs x and y coordinates, width and height. Unlike cameras, you're not supposed to move it at all, but move its contents instead.
Bitmap handles drawings, it's a collection of colored or transparent bits or dots that allow you to display text or even so called cute fakemon (a lame way to use it indead). In this case it needs a width and some height. Later you can call its draw_text method to tell it in its ears that it should print that emoticon on screen. You need to pass x, y, width, a line height, text, and sometimes a number additionally to align it to your right hand side or center it.
"For God has not destined us for wrath, but for obtaining salvation through our Lord Jesus Christ," 1 Thessalonians 5:9
Maranatha!
The Internet might be either your friend or enemy. It just depends on whether or not she has a bad hair day.
My Original Stories (available in English and Spanish)
List of Compiled Binary Executables I have published...
HiddenChest & Roole
Give me a free copy of your completed game if you include at least 3 of my scripts!
Just some scripts I've already published on the board...
KyoGemBoost XP VX & ACE, RandomEnkounters XP, KSkillShop XP, Kolloseum States XP, KEvents XP, KScenario XP & Gosu, KyoPrizeShop XP Mangostan, Kuests XP, KyoDiscounts XP VX, ACE & MV, KChest XP VX & ACE 2016, KTelePort XP, KSkillMax XP & VX & ACE, Gem Roulette XP VX & VX Ace, KRespawnPoint XP, VX & VX Ace, GiveAway XP VX & ACE, Klearance XP VX & ACE, KUnits XP VX, ACE & Gosu 2017, KLevel XP, KRumors XP & ACE, KMonsterPals XP VX & ACE, KStatsRefill XP VX & ACE, KLotto XP VX & ACE, KItemDesc XP & VX, KPocket XP & VX, OpenChest XP VX & ACE
Maranatha!
The Internet might be either your friend or enemy. It just depends on whether or not she has a bad hair day.
My Original Stories (available in English and Spanish)
List of Compiled Binary Executables I have published...
HiddenChest & Roole
Give me a free copy of your completed game if you include at least 3 of my scripts!
Just some scripts I've already published on the board...
KyoGemBoost XP VX & ACE, RandomEnkounters XP, KSkillShop XP, Kolloseum States XP, KEvents XP, KScenario XP & Gosu, KyoPrizeShop XP Mangostan, Kuests XP, KyoDiscounts XP VX, ACE & MV, KChest XP VX & ACE 2016, KTelePort XP, KSkillMax XP & VX & ACE, Gem Roulette XP VX & VX Ace, KRespawnPoint XP, VX & VX Ace, GiveAway XP VX & ACE, Klearance XP VX & ACE, KUnits XP VX, ACE & Gosu 2017, KLevel XP, KRumors XP & ACE, KMonsterPals XP VX & ACE, KStatsRefill XP VX & ACE, KLotto XP VX & ACE, KItemDesc XP & VX, KPocket XP & VX, OpenChest XP VX & ACE