X-Moto

Tasklist

FS#639 - Some Script functions

Attached to Project: X-Moto
Opened by tuhoojabotti (tuhoojabotti) - Thursday, 23 April 2009, 17:36 GMT
Task Type Feature Request
Category Lua script
Status Unconfirmed
Assigned To No-one
Operating System All
Severity Medium
Priority Normal
Reported Version 0.5.1
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 1
Private No

Details

bool GetPlayerCollision(player,filter) //get collision for a player filter=entities,strawberries,sprites,blocks,zones,particlesources,all; returns true if collision on selected filter happens
list GetPlayerCollisions(player) //returns a list of collisions like {entities={entityid},sprites={spriteid},blocks={blockid,blockid2}}
void/x,y Set/GetCameraPos(x,y)
void SmoothCameraZoom(targetzoom,smoothness)
void SetCameraZoom() //doesn't CameraZoom() just zoom in/out not into specific value?
void PauseScript(milliseconds) //pause running of the script not the game
void PauseGame(milliseconds) //pause game but no script (no pause menu ofc.)
//timer script already posted... vink vink ;-)

very low but cool:
void SetBlockProperties(block,list of properties or something)

super cool stuff:
allow lvl to save values into lvl file like: Game.SaveValue("progress","1")
then you could get the data with Game.GetValue("progress")
(might make it harder to validate lvls with such scripts... but cool idea ;-))


P.S. ALLOW DYNAMIC BLOCKS IN OTHER LAYERS TOO! :D == AWESOME GRAPHICS POSSIBLE ;-)
P.P.S. I write more when I remember to comments ;-)
This task depends upon

Loading...