Topic: TD Game Assets(downloads)

I want to create a bunch of tools that aid me in making a game. I will post them on this page:

START AND FINISH LINE:
In the file are two meshes, a start line mesh and a finish line mesh. Also there is a very basic script on how you could use them. The start line script sets an object of your choice at the location of the start line. The finish line checks for a collision between itself and the object of your choice and then performs an action of your choice.
Note: The SpawnAtStart() function should have "object" as an argument. I changed it here, but it needs to be done in the script.

--Variables
start_line = getObject("StartLine")
finish_line = getObject("FinishLine")
start_location = getPosition(start_line)

--Functions
function SpawnAtStart(object)
    setPosition(object,start_location)
end

function GoToNextLevel()
    if isCollisionBetween(finish_line,object) then
        --loadLevel("levelName")
    end
end


function GoToMenu()
    if isCollisionBetween(finish_line,object) then
        --scene = getScene("nextScene")
        --changeScene(scene)
    end
end


PunBB bbcode test
Download:
https://sites.google.com/site/aasfsfasa … Finish.zip

More to come...

Last edited by Tutorial Doctor (2013-10-09 03:39:06)