Interactive flash?
Don't really know if this belongs in the mapping or modding section but I was wondering if you the devs are planning on adding interactivity to the swf files that are displayed on monitors etc.
For example having screens with a buttons that through lua coding will trigger certain events and actions in the map etc. That sort of thing. Buttons for closing certain bulkheads. Launching a missile in a cinematic skybox. Stuff that directly influences the game or things that are purely esthetic.
That is all, talk amongst yourselves.
For example having screens with a buttons that through lua coding will trigger certain events and actions in the map etc. That sort of thing. Buttons for closing certain bulkheads. Launching a missile in a cinematic skybox. Stuff that directly influences the game or things that are purely esthetic.
That is all, talk amongst yourselves.
Comments
<a href="http://armorgames.com/play/3614/crush-the-castle" target="_blank">http://armorgames.com/play/3614/crush-the-castle</a>
No but seriously pressable buttons in the swf would be kickass if you can tie it in with all the lua goodness.
You'd have to open the flash taking up HUD screen, I don't know if it's possible right now to play flash on entities/props unless there's some kind of special shader or texture you'd have to apply.
Pseudo code example...
<b>Flash</b>
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->TetrisPiece._x = ( TetrisPiece._x + lua( "PlayerUI_GetInput" ) );<!--c2--></div><!--ec2-->
<b>Lua</b>
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->function PlayerUI_GetInput( input )
if(bit.band(input.commands, Move.MoveLeft) ~= 0) then
return -1
else if( bit.band(input.commands, Move.MoveRight) ~= 0) then
return 1
else
// not pressing left or right
return 0
end
end<!--c2--></div><!--ec2-->
And I think this is more of a modding thing. :)
To my knowledge swf's are allready baked into most of the props that feature a screen, and it's these swf's that allow for the animated screens we see in the engine test. I'm merely wondering if we can allow the actionscripts in the flash swf's to call lua functions or interact with the map in other ways. Now this would demand that we would be able to move a cursor around on the screen to select and push buttons etc. and I'm not so sure that could be done through modding as it would have to be an engine core feature I would think.
That we'd be able to play flash games on screens in the Readyroom would just be an added bonus :D
especially for buttons, keypads, interactions with screens etc...