Log In  
Follow
mistermax

I like stuff

[ :: Read More :: ]

Pretty basic notion, but I'm falling over on this...
With a sprite that has a starting X,Y and a speed, I'd like the sprite to remain on screen.

However:

-- locks sprite off screen after passing the screen boundary
-- if btn(0)
--and x<128
-- then//move sprite
-- if x < 128
-- then
-- x=x-speed
-- end
-- end

-- locks sprite centre screen
-- while x < 128 do
-- if btn(0) then
-- x=x-speed
-- end
-- end

P#22025 2016-06-01 06:38 ( Edited 2016-06-02 00:09)

Follow Lexaloffle:          
Generated 2024-04-20 03:11:32 | 0.063s | Q:5