Log In  
Log In  

@Eusebia32

Follow
Follow

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)

About | Contact | Updates | Terms of Use
Follow Lexaloffle:        
Generated 2019-04-25 00:12 | 0.042s | 2097k | Q:10