help
The script that makes the Picture show after the Player starts the Game [Presses Play Button]
RGSS Script RequestsWe need way more info than what you've provided us with.
which play button for example? The playtest button in the editor or the game button in the game?
and in which game?
and in which game?
i hope this will help.
The Play button in the game.
Ruby:
# * Show New Game Picture * #
# Scripter : Kyonides Arkanthes
# 2023-06-22
class Scene_Title
PICTURE = "Society Leader"
PICTURE_Y = 20
PICTURE_TIMER_SECONDS = 5
alias :kyon_show_new_game_picture_scn_ttl_up :update
def update
if Input.trigger?(Input::C) and @command_window.index == 0
show_picture
return
elsif @timer
@timer -= 1
start_new_game if @timer == 0
return
end
kyon_show_new_game_picture_scn_ttl_up
end
def show_picture
$game_system.se_play($data_system.decision_se)
@timer = Graphics.frame_rate * PICTURE_TIMER_SECONDS
@picture = Sprite.new
@picture.bitmap = bm = RPG::Cache.picture(PICTURE)
@picture.x = 320 - bm.width / 2
@picture.y = PICTURE_Y
end
def start_new_game
@timer = nil
@picture.bitmap.dispose
@picture.dispose
command_new_game
end
end
Thatz doesn't need a script at all - just make an event with show picture on your first map, set it to parallel and wait, erase and disable after the picture is shown.
@Andar did you even notice the embedded comments the example picture includes? I'm just giving the OP what has been asked for here.
@kyonides your script post wasn't even there when I wrote my answer, we posted at exact the same time
I was referring to the OP's postings.
I was referring to the OP's postings.
Original thread: https://forums.rpgmakerweb.com/threads/the-script-that-makes-the-picture-show-after-the-player-starts-the-game-presses-play-button.158590/