graphics trouble?
Posted: Sun Dec 15, 2013 9:58 am
i know about the limit of 2048px for graphics, but i think cube said there was a way around that with stripes.
the only problem is, they are already stripes and wont work xD
here is the code i want to work: (most preferably without changing the graphics sheet into smaller parts of just smaller. That is so much work, and i kinda suck at it )
btw, the sheets are now between 2400px x 2400px and 3800px x 3800px
the only problem is, they are already stripes and wont work xD
here is the code i want to work: (most preferably without changing the graphics sheet into smaller parts of just smaller. That is so much work, and i kinda suck at it )
Code: Select all
{
type = "unit",
name = "king-biter",
icon = "__base__/graphics/icons/creeper.png",
flags = {"placeable-player", "placeable-enemy", "placeable-off-grid", "breaths-air"},
max_health = 15000,
order = "b-b-f",
resistances =
{
{
type = "physical",
percent = 75,
decrease = 5,
},
{
type = "fire",
percent = 75,
decrease = 5,
},
{
type = "laser",
percent = 75,
decrease = 5,
},
{
type = "explosion",
percent = 75,
decrease = 5,
},
},
healing_per_tick = 0.12,
collision_box = {{-0.8, -0.8}, {0.8, 0.8}},
selection_box = {{-1.4, -3.0}, {1.4, 0.6}},
sticker_box = {{-1.2, -1.6}, {1.2, 0}},
attack_parameters =
{
range = 1.5,
cooldown = 35,
ammo_category = "melee",
ammo_type = make_unit_melee_ammo_type(150),
animation =
{
frame_width = 558,
frame_height = 368,
frame_count = 11,
direction_count = 16,
axially_symmetrical = false,
shift = {1.74609, -0.644531},
stripes =
{
{
filename = "__DyTech-Graphics__/graphics/entity/biter-king/king-biter-attack-1.png",
width_in_frames = 6,
height_in_frames = 8
},
{
filename = "__DyTech-Graphics__/graphics/entity/biter-king/king-biter-attack-2.png",
width_in_frames = 5,
height_in_frames = 8
},
{
filename = "__DyTech-Graphics__/graphics/entity/biter-king/king-biter-attack-3.png",
width_in_frames = 6,
height_in_frames = 8
},
{
filename = "__DyTech-Graphics__/graphics/entity/biter-king/king-biter-attack-4.png",
width_in_frames = 5,
height_in_frames = 8
}
},
},
},
vision_distance = 30,
movement_speed = 0.03,
distance_per_frame = 0.2,
pollution_to_join_attack = 5000,
distraction_cooldown = 300,
corpse = "king-biter-corpse",
dying_sound =
{
{
filename = "__base__/sound/creeper-death-1.wav",
volume = 0.7
},
{
filename = "__base__/sound/creeper-death-2.wav",
volume = 0.7
},
{
filename = "__base__/sound/creeper-death-3.wav",
volume = 0.7
},
{
filename = "__base__/sound/creeper-death-4.wav",
volume = 0.7
}
},
run_animation =
{
still_frame = 4,
frame_width = 338,
frame_height = 234,
frame_count = 16,
direction_count = 16,
axially_symmetrical = false,
shift = {0.714844, -0.304688},
stripes =
{
{
filename = "__DyTech-Graphics__/graphics/entity/biter-king/king-biter-run-1.png",
width_in_frames = 8,
height_in_frames = 16
},
{
filename = "__DyTech-Graphics__/graphics/entity/biter-king/king-biter-run-2.png",
width_in_frames = 8,
height_in_frames = 16
}
},
}
},