Title cursor conception

nio kasgami

VampCat
Veteran
Joined
May 21, 2013
Messages
8,949
Reaction score
3,042
First Language
French
Primarily Uses
RMMV
so hello 

I build my title screen and I want to add a cursor option in my title screen but i have a little problem

I just don't remember how to create this 

and also ~

I want to make it animated (if possible) 

but sadly make the stuff animated I am less good with that 

sankyou if you can help me ~ 

signed nio~
 

Zalerinian

Jack of all Errors
Veteran
Joined
Dec 17, 2012
Messages
4,696
Reaction score
935
First Language
English
Primarily Uses
N/A
You can just make a sprite to hold the cursor's bitmap using something similar to:

my_bitmap = Bitmap.new(250, 250)my_sprite = Sprite.newmy_sprite.bitmap = my_bitmapmy_bitmap is a blank, 250x250 canvas.

For animating the cursor, just change the sprite's opacity and other properties in a loop.
 

nio kasgami

VampCat
Veteran
Joined
May 21, 2013
Messages
8,949
Reaction score
3,042
First Language
French
Primarily Uses
RMMV
You can just make a sprite to hold the cursor's bitmap using something similar to:

my_bitmap = Bitmap.new(250, 250)my_sprite = Sprite.newmy_sprite.bitmap = my_bitmapmy_bitmap is a blank, 250x250 canvas.

For animating the cursor, just change the sprite's opacity and other properties in a loop.
 HO I forgot to say my Command are in Sprite~
 

Zalerinian

Jack of all Errors
Veteran
Joined
Dec 17, 2012
Messages
4,696
Reaction score
935
First Language
English
Primarily Uses
N/A
well, if your commands are already sprites, and therefore already separate images, just do the same for the cursor and have some properties change over time for the cursor. The most common changes would either be the opacity changing, similar to how the default window animation is, or moving the cursor from side to side by changing x (and sometimes y) values.
 

nio kasgami

VampCat
Veteran
Joined
May 21, 2013
Messages
8,949
Reaction score
3,042
First Language
French
Primarily Uses
RMMV
So I create a class like my command right? (if I really understand)

Code:
 class Title_Command < Sprite  include Hero_Principal      #┌────────────────────────────────────────┐#│      ● initialize                      │                                                          #└────────────────────────────────────────┘  def initialize(viewport = nil,index)   super(viewport)      @hero = "Hero_"      @index = index      @float = [0,0,0]      self.bitmap = Cache.title(@hero + "Com" + "_" + index.to_s)      self.ox = self.bitmap.width / 2      self.oy = self.bitmap.height / 2      self.x = Command_Position[0] + (Command_Distance * @index)      self.y = Command_Position[1] + (Command_Space * @index)      self.z = 11       end  #┌────────────────────────────────────────┐#│      ● Dispose Sprites                 │                                                          #└────────────────────────────────────────┘  def dispose_sprites      self.bitmap.dispose  end  #┌────────────────────────────────────────┐#│      ● Update Sprites                  │                                                          #└────────────────────────────────────────┘  def update_sprites(index,active)         if index == @index         self.opacity += 10       else         self.opacity -= 10 if self.opacity > 120          @float = [0,0,0]     end    end             end 
 
Last edited by a moderator:

Zalerinian

Jack of all Errors
Veteran
Joined
Dec 17, 2012
Messages
4,696
Reaction score
935
First Language
English
Primarily Uses
N/A
You don't need to create a whole class for a cursor, you just need to edit the title scene's class to have the cursor.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,867
Messages
1,017,062
Members
137,575
Latest member
akekaphol101
Top