drawimage not working?
Status: Alpha
Brought to you by:
cwalther
From: James W. <jfc...@ya...> - 2009-10-29 07:33:41
|
Hi all, While running some tests concerning a flashlight effect, I came across this: When I try the code below, pipmak tells me that "drawimage" is not a valid method. Anyone know what I(or Pipmak) am doing wrong? Thanks a lot, James CODE/ slide "light.jpg" local darkLayer = patch { x = 0, y = 0, image = "dark.png" } local flashlightmask = patch { x = 0, y = 0, image = "flashlightmask.png", visible=false } hotspotmap "hotspotmap.png" hotspot { onmousedown = function() darkLayer:drawimage (300, 200, flashlightmask) end } CODE\ |