frameOn & frameOff are frames indexes from an imageSheet which you have created. They are not individual png image files.
[import]uid: 84637 topic_id: 36032 reply_id: 143170[/import]
Your function cannot “see” instance because you have declared it below the function. There are several ways to get around this situation, the most common being creating a “forward reference”.
See the below modified example of your code:
[code]
– Create a “forward reference” to instance here
local instance
function knapp1 (event)
instance:play(“hubbe.png”)
end
frameOn & frameOff are frames indexes from an imageSheet which you have created. They are not individual png image files.
[import]uid: 84637 topic_id: 36032 reply_id: 143170[/import]
Your function cannot “see” instance because you have declared it below the function. There are several ways to get around this situation, the most common being creating a “forward reference”.
See the below modified example of your code:
[code]
– Create a “forward reference” to instance here
local instance
function knapp1 (event)
instance:play(“hubbe.png”)
end
frameOn & frameOff are frames indexes from an imageSheet which you have created. They are not individual png image files.
[import]uid: 84637 topic_id: 36032 reply_id: 143170[/import]
Your function cannot “see” instance because you have declared it below the function. There are several ways to get around this situation, the most common being creating a “forward reference”.
See the below modified example of your code:
[code]
– Create a “forward reference” to instance here
local instance
function knapp1 (event)
instance:play(“hubbe.png”)
end
frameOn & frameOff are frames indexes from an imageSheet which you have created. They are not individual png image files.
[import]uid: 84637 topic_id: 36032 reply_id: 143170[/import]
Your function cannot “see” instance because you have declared it below the function. There are several ways to get around this situation, the most common being creating a “forward reference”.
See the below modified example of your code:
[code]
– Create a “forward reference” to instance here
local instance
function knapp1 (event)
instance:play(“hubbe.png”)
end