a question about .sprite files

a question about .sprite files

Postby sinisa3games » 15 Feb 2018, 09:57

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:
'Ello
User avatar
sinisa3games
 
Posts: 117
Joined: 08 Feb 2018, 20:45
Location: Right over there

Re: a question about .sprite files

Postby manuel » 15 Feb 2018, 10:05

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.
manuel
 
Posts: 190
Joined: 19 Sep 2017, 09:03

Re: a question about .sprite files

Postby sinisa3games » 15 Feb 2018, 10:06

i did that but the game kept crashing, i dont know if i did something wrong
'Ello
User avatar
sinisa3games
 
Posts: 117
Joined: 08 Feb 2018, 20:45
Location: Right over there

Re: a question about .sprite files

Postby manuel » 15 Feb 2018, 10:08

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.
manuel
 
Posts: 190
Joined: 19 Sep 2017, 09:03

Re: a question about .sprite files

Postby sinisa3games » 15 Feb 2018, 10:09

okay but still, when i turned the other way it was really kind of stupid looking
'Ello
User avatar
sinisa3games
 
Posts: 117
Joined: 08 Feb 2018, 20:45
Location: Right over there

Re: a question about .sprite files

Postby manuel » 15 Feb 2018, 10:11

Game crash? Sounds more like you had unbalanced brackets () in you sprite-file. Maybe check for that.
manuel
 
Posts: 190
Joined: 19 Sep 2017, 09:03

Re: a question about .sprite files

Postby sinisa3games » 15 Feb 2018, 10:14

i checked it, i really didnt see any problems
'Ello
User avatar
sinisa3games
 
Posts: 117
Joined: 08 Feb 2018, 20:45
Location: Right over there

Re: a question about .sprite files

Postby manuel » 15 Feb 2018, 10:15

OK, then where did you place the sprite-file and the textures?
manuel
 
Posts: 190
Joined: 19 Sep 2017, 09:03

Re: a question about .sprite files

Postby sinisa3games » 15 Feb 2018, 10:19

i really cant tell you, check it yourself
Attachments
tux.zip
(627.35 KiB) Downloaded 613 times
'Ello
User avatar
sinisa3games
 
Posts: 117
Joined: 08 Feb 2018, 20:45
Location: Right over there

Re: a question about .sprite files

Postby sinisa3games » 15 Feb 2018, 10:20

oops, forgot to tell you that they are unfinished
'Ello
User avatar
sinisa3games
 
Posts: 117
Joined: 08 Feb 2018, 20:45
Location: Right over there

Re: a question about .sprite files

Postby manuel » 15 Feb 2018, 10:29

It is an unbalanced brackets error. I just have to find out where a bracket is missing.
manuel
 
Posts: 190
Joined: 19 Sep 2017, 09:03

Re: a question about .sprite files

Postby manuel » 15 Feb 2018, 10:31

Line 207. At the action "big-idle-new" you forgot to close the opening bracket of the hitbox
Attachments
tux.zip
(1.91 KiB) Downloaded 554 times
Last edited by manuel on 15 Feb 2018, 10:34, edited 1 time in total.
manuel
 
Posts: 190
Joined: 19 Sep 2017, 09:03

Re: a question about .sprite files

Postby sinisa3games » 15 Feb 2018, 10:32

i did it
'Ello
User avatar
sinisa3games
 
Posts: 117
Joined: 08 Feb 2018, 20:45
Location: Right over there

Re: a question about .sprite files

Postby sinisa3games » 15 Feb 2018, 10:36

uh i already fixed it, also there is a line with "imafes" not "images"
'Ello
User avatar
sinisa3games
 
Posts: 117
Joined: 08 Feb 2018, 20:45
Location: Right over there

Re: a question about .sprite files

Postby manuel » 15 Feb 2018, 10:38

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.
Attachments
tux_backup.zip
(682.12 KiB) Downloaded 614 times
Last edited by manuel on 15 Feb 2018, 10:42, edited 1 time in total.
manuel
 
Posts: 190
Joined: 19 Sep 2017, 09:03

Re: a question about .sprite files

Postby sinisa3games » 15 Feb 2018, 10:40

i did
'Ello
User avatar
sinisa3games
 
Posts: 117
Joined: 08 Feb 2018, 20:45
Location: Right over there

Who is online

Users browsing this forum: No registered users and 1 guest

cron