flash-like animation menu

Blitz3D Forums/Blitz3D Programming/flash-like animation menu

Akat(Posted 2003) [#1]
how to integrate flash-like animation as a menu like u can see in Need for Speed Underground (or any other game which using this effect)... it is beautiful with the animated UI like flash. i dont beleive they doing this using still pics as the UI... anyone know?


Rogue Vector(Posted 2003) [#2]
It has been a while since I did any flash work, but I did manage once to join a flash based 'projector' intro sequence to my game engine .exe.

For the uninitiated, a flash projector file is a standalone .exe file containing the flash intro or menu system - whatever.

It went something like this...

-Create the animation using flash - obviously

-At the last frame of the animation insert the function:
FSCOMMAND("exec", "MyBlitzProg.exe")

-Compile the flash animation into a projector
(call it myProj.exe for example)

-Place the 'myProj.exe' projector and your game engine in to the same folder and call it 'fscommands'

-Make sure your game engine exe name is the same as the one supplied in the FSCOMMAND() function. In this case it would be MyBlitzProg.exe

-Run fscommands\myProj.exe.

This should run the flash program and then trigger your game engine.

This was as far as I got.

It may be possible to add command line arguments in the FSCOMMAND() function to handle your menu options.

So the command might look like:
FSCOMMAND("exec", "MyBlitzProg.exe -scrwidth1024 -scrheight768")


Then in your Blitz 3D engine you could put something like:
-----------------------------------------------------------

Global ScreenWidth%, ScreenHeight%,

If Left(CommandLine$(),9) = "-scrwidth"
ScreenWidth = Int(Mid(CommandLine$(), 10,4))
EndIf

If Mid(CommandLine$(),15,9) = "-scrheight"
ScreenHeight = Int(Mid(CommandLine$(),25,4))
EndIf


-----------------------------------------------------------
Now you would have two globals that were originally configured in the flash program.

I'm not sure about this last bit though. You'll have to try it.

Hope this helps.

RV


darklordz(Posted 2003) [#3]
Actualy in nsf5 it's been done with sprites......
and in other racing games it's als been done with 3d models....


Akat(Posted 2003) [#4]
- Thanx RV... i try it tonight

- Darklordz... sprites? whoa, how did they animate everything in there? (so much work to do i think)