Hi, people im trying to learn the send sprite function..
to test what im learning ive put 2 graphics on the stage and attached
this behaviour to the graphic in sprite 1:
------------------------------------------------------------------------
-----
property movex, movey

on getpropertydescriptionlist me
  list = [:]
  addprop list, #movex, [#comment: "The move distance", #format:
#integer, #default: 1]
  addprop list, #movey, [#comment: "the move height", #format: #integer,
#default: 1]
  return list
 
end



on exitframe me
  sprite(me.spritenum).loch=sprite(me.spritenum).loch + movex

end

on mouseUp
  sendsprite sprite(sprite 2,#gothen,movex)
end
------------------------------------------------------------------------
--------------

on the second graphic in Sprite 2 ive put this behaviour:

------------------------------------------------------------------------
---------------
on gothen me, movex
  sprite(me.spritenum).loch=sprite(me.spritenum).loch + movex
end
------------------------------------------------------------------------
----------------------- 

Im assuming that this Should move sprite 1 incremetally accross the
screen  (which it does...) but when i click on the graphic it should be
moveing sprite 2...............BUT IT DOES NOT !!!!

I get this error message....

------------------------------------------------------------------------
----------------------------------------------

script error ( one parameter expected)
sendsprite sprite(sprite 2,#gothen,movex)

------------------------------------------------------------------------
----------------------------------------

Please can someone help me .................thanx

JON

 


[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi  To post messages to the list,
email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo.  Thanks!]

Reply via email to