lavalevel

Weird error

Jan 8th, 2012
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1.  
  2. doesn't work
  3.  
  4.  
  5.  
  6.  
  7. if itemView[11] == "itemSprite" then
  8. layout.elements.Item11: play("itemSprite")
  9. pickUpHighlight.alpha = .4
  10. else
  11. pickUpHighlight.alpha = .4
  12.  
  13. --------
  14. /Users/eric/Documents/CRPG/scene_game.lua:542: in function 'drawTerrain'
  15.  
  16. Runtime error
  17. /Users/eric/Documents/CRPG/scene_game.lua:575: attempt to index global 'pickUpHighlight' (a nil value)
  18.  
  19.  
  20.  
  21.  
  22. works...
  23.  
  24. if itemView[11] == "itemSprite" then
  25. layout.elements.Item11: play("itemSprite")
  26. -- pickUpHighlight.alpha = .4
  27. else
  28. pickUpHighlight.alpha = .4
  29. print ("play Item11")
Advertisement
Add Comment
Please, Sign In to add comment