All i would like my script to do is add points and subtract points as the user clicks on each member and for them to see whether they are losing and to play badluck music when they lose a point or success when they win . This script i am using so far is below , i am trying books and websites to sort out my problem but to no avail * back to the drawing board* My due date for this is monday any help will be appreciated
--------------------------------------------------------------------------------------------------------------------------------------------------------------------
property points, pointsForThisSprite
on mouseUp?
points = points + pointsForThisSprite
alert("You scored "&pointsForThisSprite&" points!")
end
on getPropertyDescriptionList me
pdlist = [:]
pdef = [#comment: "Number of points for this sprite",#format:#integer,#default:0]
addprop pdlist,#pointsForThisSprite,pdef
return pdlist
end
on mousedown
set points = 100
if points < -10 then puppetSound(1,member("BadLuckSound"))
if points < +10 then puppetSound(1,member("SuccessSound"))
end if
end
--------------------------------------------------------------------------------------------------------------------------------------------------------------------
property points, pointsForThisSprite
on mouseUp?
points = points + pointsForThisSprite
alert("You scored "&pointsForThisSprite&" points!")
end
on getPropertyDescriptionList me
pdlist = [:]
pdef = [#comment: "Number of points for this sprite",#format:#integer,#default:0]
addprop pdlist,#pointsForThisSprite,pdef
return pdlist
end
on mousedown
set points = 100
if points < -10 then puppetSound(1,member("BadLuckSound"))
if points < +10 then puppetSound(1,member("SuccessSound"))
end if
end