shield arcs

BlitzMax Forums/BlitzMax Beginners Area/shield arcs

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

see if this can help you. I used your shield sample to code this. you might want to play with the image handle offsets to get the right connections.
Graphics 800,600
lshield:timage = LoadImage("shield_left.png")
rshield:timage = LoadImage("shield_right.png")
tshield:timage = LoadImage("shield_fore.png")
bshield:timage = LoadImage("shield_aft.png")
ship:timage = LoadImage("ship.bmp")
SetImageHandle(lshield,61,ImageHeight(lshield)/2)
SetImageHandle(rshield,-38,ImageHeight(rshield)/2)
SetImageHandle(tshield,ImageWidth(tshield)/2,61)
SetImageHandle(bshield,ImageWidth(bshield)/2,-38)
MidHandleImage(ship)

While Not KeyDown(key_escape)
	If KeyDown(key_left) angle = angle -1
	If KeyDown(key_right)angle = angle +1
	SetRotation angle
	DrawImage(ship,300,300)
	DrawImage(lshield,300,300)
	DrawImage(rshield,300,300)
	DrawImage(tshield,300,300)
	DrawImage(bshield,300,300)
	Flip()
	Cls
Wend