This example is for Dbpro, but I suppose that you can do the same in AppGameKit .
ink rgb(60,10,0),0
box 0,0,10,40
ink rgb(255,255,0),0
box 4,4,6,6
get image 1,0,0,10,40
autocam off
sync on
sprite 1,50,50,1
offset sprite 1,4,4 `offseting sprite to hinge
do
rotate sprite 1,rt# `main body
sprite 2,sprite x(1),sprite y(1),1 `creating sprite 2 and positioning in sprite 1 coords
rotate sprite 2,sprite angle(1) `rotating sprite 2 same angle of sprite 1
move sprite 2,-35 `moving sprite 2 to knee position
rotate sprite 2,0 `reseting sprite 2 angle
offset sprite 2,4,4 `offseting sprite 2 to hinge
sprite 3,sprite x(2),sprite y(2),1
rotate sprite 3,sprite angle(2)
move sprite 3,-30
rotate sprite 3,-90
offset sprite 3,4,4
size sprite 3,12,20
if upkey() then rt#=rt#-0.3
if downkey() then rt#=rt#+0.3
set cursor 0,0
print "Press upkey/downkey"
sync
loop
Cheers.
I'm not a grumpy grandpa