- Joined
- Aug 12, 2015
- Messages
- 2
- Reaction score
- 0
- First Language
- English
- Primarily Uses
Hello all,
I managed to create a basic scrolling background for my game by editing the default title script and now want to have my game title be a static text item above my background. I tried adding another image above the title, but that locked up the scrolling. Any idea how I can do this? For reference, this is what I have now:
#--------------------------------------------------------------------------
# * Create Title Graphic
#--------------------------------------------------------------------------
def create_title_graphic
@sprite = Sprite.new
@sprite.bitmap = Cache.system("Title")
@sprite = Plane.new(@viewport1)
@sprite.bitmap = Cache.system("Title")
@sprite.oy = 60
@sprite.ox = 100
@sprite.z = -100
@sprite.opacity = 150
end
#--------------------------------------------------------------------------
# *Animate Title Graphic
#--------------------------------------------------------------------------
def update
super
@sprite.ox+=1
@command_window.update
if Input.trigger?(Input::C)
case @command_window.index
when 0 #New game
command_new_game
when 1 # Continue
command_continue
when 2 # Shutdown
command_shutdown
end
end
end
Thanks!
I managed to create a basic scrolling background for my game by editing the default title script and now want to have my game title be a static text item above my background. I tried adding another image above the title, but that locked up the scrolling. Any idea how I can do this? For reference, this is what I have now:
#--------------------------------------------------------------------------
# * Create Title Graphic
#--------------------------------------------------------------------------
def create_title_graphic
@sprite = Sprite.new
@sprite.bitmap = Cache.system("Title")
@sprite = Plane.new(@viewport1)
@sprite.bitmap = Cache.system("Title")
@sprite.oy = 60
@sprite.ox = 100
@sprite.z = -100
@sprite.opacity = 150
end
#--------------------------------------------------------------------------
# *Animate Title Graphic
#--------------------------------------------------------------------------
def update
super
@sprite.ox+=1
@command_window.update
if Input.trigger?(Input::C)
case @command_window.index
when 0 #New game
command_new_game
when 1 # Continue
command_continue
when 2 # Shutdown
command_shutdown
end
end
end
Thanks!

