Hi,
I making a game whereby the player inputs numbers into 4 text boxes (up,
down, left, right), then clicks the appropriate button in order to move an
egg around a maze. I have a script on the egg...could someone tell me what
it means? i.e., comment it?

This is for the egg: -

----------------------------------------------------------------------------
-------------
Global gStartLoc, gEndLoc, ImTheEgg

on beginSprite me
ImTheEgg = sprite(me.spritenum)
gStartLoc = ImTheEgg.loc
gEndLoc = ImTheEgg.loc
end

on enterframe
if gEndLoc[1] > ImTheEgg.loc[1] then ImTheEgg.loch = ImTheEgg.loch + 1
if gEndLoc[1] < ImTheEgg.loc[1] then ImTheEgg.loch = ImTheEgg.loch - 1
if gEndLoc[2] > ImTheEgg.loc[2] then ImTheEgg.locv = ImTheEgg.locv + 1
if gEndLoc[2] < ImTheEgg.loc[2] then ImTheEgg.locv = ImTheEgg.locv - 1
end

on SetMyStartPos me
gStartLoc = ImTheEgg.loc
end

on RelocateMe me
alert "Maze Wall Crossed!"
go "2"
ImTheEgg.loc = gStartLoc
gEndLoc = gStartLoc
end
----------------------------------------------------------------------------
-------------

Thanks....much appreciated!

--
[url]www.djmasala.com[/url]
[url]http://game-i2.djmasala.com[/url]