Page 1 of 1

a question about .sprite files

PostPosted: 15 Feb 2018, 09:57
by sinisa3games
is it possible to run the game with a .sprite file which doesnt use the mirroraction thing? im trying to make my sprites which are smaller than tux and not in the middle because the hitbox wouldnt be where my sprites are. please help :cry:

Re: a question about .sprite files

PostPosted: 15 Feb 2018, 10:05
by manuel
Sprite files contains out of the different actions the creatures have. So a sprite-file contains actions for "walking-left", "walking-right" and so on. The mirror-action is just a short-cut to make sprite-file adding easier and reduce the amount of textures needed. So you don't have to add a "mirror-action", you just can insert additional textures.

Re: a question about .sprite files

PostPosted: 15 Feb 2018, 10:06
by sinisa3games
i did that but the game kept crashing, i dont know if i did something wrong

Re: a question about .sprite files

PostPosted: 15 Feb 2018, 10:08
by manuel
You can add a new hitbox for the mirror-actions, so you eventually don't need new textures.

But please don't add (partly) invisible creatures, which already hit you when you're still far away from the visible part.

Re: a question about .sprite files

PostPosted: 15 Feb 2018, 10:09
by sinisa3games
okay but still, when i turned the other way it was really kind of stupid looking

Re: a question about .sprite files

PostPosted: 15 Feb 2018, 10:11
by manuel
Game crash? Sounds more like you had unbalanced brackets () in you sprite-file. Maybe check for that.

Re: a question about .sprite files

PostPosted: 15 Feb 2018, 10:14
by sinisa3games
i checked it, i really didnt see any problems

Re: a question about .sprite files

PostPosted: 15 Feb 2018, 10:15
by manuel
OK, then where did you place the sprite-file and the textures?

Re: a question about .sprite files

PostPosted: 15 Feb 2018, 10:19
by sinisa3games
i really cant tell you, check it yourself

Re: a question about .sprite files

PostPosted: 15 Feb 2018, 10:20
by sinisa3games
oops, forgot to tell you that they are unfinished

Re: a question about .sprite files

PostPosted: 15 Feb 2018, 10:29
by manuel
It is an unbalanced brackets error. I just have to find out where a bracket is missing.

Re: a question about .sprite files

PostPosted: 15 Feb 2018, 10:31
by manuel
Line 207. At the action "big-idle-new" you forgot to close the opening bracket of the hitbox

Re: a question about .sprite files

PostPosted: 15 Feb 2018, 10:32
by sinisa3games
i did it

Re: a question about .sprite files

PostPosted: 15 Feb 2018, 10:36
by sinisa3games
uh i already fixed it, also there is a line with "imafes" not "images"

Re: a question about .sprite files

PostPosted: 15 Feb 2018, 10:38
by manuel
I do recommend to not change the original files of SuperTux. I hope that you have kept a back-up of the original sprite-file.

EDIT: And the textures, too, of course.

Re: a question about .sprite files

PostPosted: 15 Feb 2018, 10:40
by sinisa3games
i did