Interface sprite outside field

Have any questions or problems in making your game, subscribing and/or using our software? Post here.
Forum rules
Make sure you are using the newest version. This can be downloaded at the top of the site via the "downloads" link.

Use a very good subject. "Problem" or "Help" are unacceptable titles.

Use the search feature before posting a question, as the answer is probably already here.

Subscript out of range error 9: This is a generic error, and we'll need way more information than that to figure out the problem. If you get this, strongly consider following the instructions of submitting your project through the Submit Bug feature within the editor.
User avatar
YunO
001 Fanatic
 
Joined: Thu Dec 27, 2007 8:38 pm
Location: (un)fortunately Brazil!

Interface sprite outside field

Postby YunO » Fri Oct 30, 2015 9:04 pm

I created a new Sprite called "Items" to use on my interface. It is 64x64 pixels, transparent PNG, and the image itself is fully centered.
But as I put it on my interface, the Sprite falls out of the field size, looking like it is translated downwards. I tested with default sprites from the engine, but they all seem to work fine.
Check it out:
interface editor.png
In the interface editor. The second sprite is on place, the first one is outside the field (selected).
interface editor.png (1.58 KiB) Viewed 387 times

photoshop image.png
This is how the image file is. I'm using Photoshop, and completely centered the image.

game testing.png
This is when testing the interface in-game.
game testing.png (3.04 KiB) Viewed 387 times


I checked the sprite editor window, the only difference between the two is the option "Smooth scaling", which I don't want to use. Yes, it is checked as Billboard.
Any ideas? :(
Huge project coming soon...

User avatar
JamX
001 Subscriber
 
Joined: Fri Jun 25, 2010 11:03 pm

Re: Interface sprite outside field

Postby JamX » Fri Oct 30, 2015 9:15 pm

In the field, set the alignment property to center.

User avatar
YunO
001 Fanatic
 
Joined: Thu Dec 27, 2007 8:38 pm
Location: (un)fortunately Brazil!

Re: Interface sprite outside field

Postby YunO » Fri Oct 30, 2015 9:29 pm

It is centered. Tried setting to up, but then it got WAY up.
Tried with another sprite, completely different, 64x64, and same thing happened. Also two crashes on the interface editor (already reported).
Huge project coming soon...

User avatar
Gamerdude
001 Support
 
Joined: Wed Dec 12, 2007 8:56 pm
Location: Australia

Re: Interface sprite outside field

Postby Gamerdude » Fri Oct 30, 2015 10:03 pm

In the Sprite Editor, make sure the sprite is centered in the Interface tab (default tab is 45 degrees)
Image
Image

User avatar
YunO
001 Fanatic
 
Joined: Thu Dec 27, 2007 8:38 pm
Location: (un)fortunately Brazil!

Re: Interface sprite outside field

Postby YunO » Sat Oct 31, 2015 8:02 am

Yes! It worked! Thanks, Gamerdude!
Huge project coming soon...


Return to Technical Support Questions

Who is online

Users browsing this forum: No registered users

cron