Log In  
Follow
Eusebia32
[ :: Read More :: ]

I'm a new Pico-8 user. I feel like this should have some crazy obvious answer right in front of my nose.

This function works fine if called in _draw(), but I cannot get a btnp to call it (or any other function) -

function test_swing() 
print("swing", 100, 100)
end

The btnp code in _update() is

if btnp(4) then
test_swing()
end

I would expect this to just flash up briefly at the 100,100 coordinate on the button press (z). Calling it
in _draw() prints it to the screen continuously as expected. Any ideas? Thanks

P#58798 2018-11-05 12:59 ( Edited 2018-11-05 19:27)

Follow Lexaloffle:          
Generated 2024-04-19 18:04:07 | 0.072s | Q:5