Log In  

Cart #diving2022-0 | 2022-04-21 | Code ▽ | Embed ▽ | No License

Hi all,
I'm new to pico-8 and enjoying the constraints. I'm trying to create a diving game inspired by the old Daily Thompson's supertest game on the Amstrad. I have my scene with jumping working but I'm having issues rotating the sprite once you press left or right. I'm trying to use @freds72 rotation code and something is obviously rotating but I don't understand the parameters of the function. Is this correct?

--sx = x location of sprite on spritesheet
--sy = y location of sprite on spritesheet
--x = is this for the rotation area?
--y = is this for the rotation area?
a = angle of rotation
w = width of sprite (although mine is rectangular)
rspr(sx,sy,x,y,a,w)

Once I've got rotation sorted. I'm going to figure out number of turns and angle of the divers head relative to the water, so I can get the judges scoring in. I think my next big challenge will probably be getting the board to bend when hit.

Thanks for taking a look. Hopefully I can release something more playable soon.

P#110656 2022-04-21 16:28 ( Edited 2022-04-21 16:29)

You might be interested in this, @anefiox.

https://www.lexaloffle.com/bbs/?pid=52525

P#110661 2022-04-21 17:33 ( Edited 2022-04-21 17:34)

Thanks @dw817 that helped. I have a rotating sprite now! Will post updates soon.

P#110681 2022-04-21 22:00

[Please log in to post a comment]

Follow Lexaloffle:          
Generated 2024-04-13 11:39:59 | 0.037s | Q:17