1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
local turretimg = { 	image(config.turretimg, 0, 1, 1), 	image('gfx/sprites/flare1.bmp', 0, 1, 1), 	image(config.turretshooterimg, 0, 1, 1) } for i=1, 3 do 	imagepos(turretimg[i], x*32+16, y*32+16,0) end laserturrets[#laserturrets+1] = { --harder, better, faster, stronger 	x = x, 	y = y, 	turretimg = turretimg[1], 	turretlightingimg = turretimg[2], 	turretshooterimg = turretimg[3], 	object = obj, 	lasers = 0, 	cntdown = 0, 	team = player(id,'team'), 	player = id, 	rotation = player(id,'rot'), 	rootrotation = player(id,'rot'), 	rotationvar = 1, 	rotcntdown = config.turretrotationcooldown }
I can't tell why you're seeing them in the right position. Images spawn at position (0;0) by default.
edited 1×, last 10.06.12 03:44:55 pm