I was searching and found a script for making a loop animation backdrop on the title screen on OHR.
So I want to make a title screen were a menu is showed up and you can choose the options. Like new game, load, etc.. Is that possible? (with The animated background offcourse).
The script i found in hamsterrepublic is this
Code: Select all
plotscript, animated title, begin
#### If you want title music, add a line like this here:
#play song(4)
suspend player
while (true) do (
variable (backdrop, tick)
##### Change 2 and 8 to first and last backdrop
for (backdrop, 2, 8) do (
show backdrop (backdrop)
variable(delay)
##### Change to the desired delay between backdrops (2 ticks = 1/9th second)
delay := 2
for (tick, 1, delay) do (
wait
# Quit game if esc/alt pressed
if (keyispressed(key:alt) || keyispressed(key:esc)) then (
fadescreenout
gameover
)
# Continue when a key is pressed
if (keyispressed(key:enter) || keyispressed(key:space) || keyispressed(key:ctrl) || lastascii) then (break(2))
)
)
)
# Show the load game menu if there are any games to load
variable (slot)
for (slot, 1, 32) do (
if (save slot used (slot)) then (
# There's at least one save, show load menu
load menu
break
)
)
# Hide the backdrop
show map
resume player
# Call your real new-game script here, if any
end