Hi, I'm creating a Mario fan game just for myself. I actually made a script for a coin model I imported into game guru. However my script does not do what I though it was going to do. It does not even show the text on screen when I test my game. I been working on this for a while and before I go on I just want to collect the coin and for it to then be destroyed and added to a score on the game screen
-- LUA Script - precede every function and global member with lowercase name of script + '_main'
-- Default script - does nothing.
points = 0
function aicoinmario_init(e)
end
function aicoinmario_main(e)
RotateToPlayer(e)
TextCenterOnX(50,10,4,"point = "..points)
PlayerDist = GetPlayerDistance(e)
if PlayerDist < 1
then
points = points + 1
Destroy(e)
end
end
Chances are i'll post my game on youtube but other than that I just cant post it, Nintendo is to strict about fan games! Im not making this to share anyway... just because I love me some mario
Thank you in advance and I plan to be more involved on the forums. If any one wants to see what I created so far I could attach a picture I guess....