1 Replies - 349 Views - Last Post: 22 April 2013 - 07:58 AM Rate Topic: -----

#1 psh  Icon User is offline

  • D.I.C Head

Reputation: -3
  • View blog
  • Posts: 65
  • Joined: 25-March 13

Lingo programming

Posted 22 April 2013 - 07:52 AM

Hello guys im trying to make a dice game .My problem is when i get a random number by clicking the button the member with name "dice" is not changing.


on mouseDown me
  sprite(me.spriteNum).member = "push btn down"
  value = random(6)
  put value
  sprite("dice").member = "dice" & value
end




Is This A Good Question/Topic? 0
  • +

Replies To: Lingo programming

#2 psh  Icon User is offline

  • D.I.C Head

Reputation: -3
  • View blog
  • Posts: 65
  • Joined: 25-March 13

Re: Lingo programming

Posted 22 April 2013 - 07:58 AM

View Postpsh, on 22 April 2013 - 02:52 PM, said:

Hello guys im trying to make a dice game .My problem is when i get a random number by clicking the button the member with name "dice" is not changing.


on mouseDown me
  sprite(me.spriteNum).member = "push btn down"
  value = random(6)
  put value
  sprite("dice").member = "dice" & value
end





i passed as parameter the number of the member "dice" which is 3 and it works but why is not working by passing its name?


sprite(3).member = "dice" & value


Was This Post Helpful? 0
  • +
  • -

Page 1 of 1