I'm new to Unity and Adventure Creator, so I tried to do the tutorial for 2D point and click. I had to stop when I reached the point where I put down Brain idle, as the pivot was set to dead center and no matter what I do, I can't make it appear on the bottom, even if the sprite says it's said to appear on the bottom. I've tried different sprites and changed it to top and center and back to bottom, but always dead center of the sprite. What could cause this issue?
Comments
I figured it out. In the top bar, over scene I had it set to center. I changed it to pivot and now it works.
Hi, I have been having the same problem as described by wolfshy above.
I am similarly new to Adventure Creator.
Here is a link to my PlayerSprite and My new Player Inspector info. You will also see an image of where my mouse pointer clicked and where my character arrived to. (He should be standing on the brown area about 0.7 up.)
It seems like the image is centred in the middle as oppossed to at the bottom centre...
I am using AC1.66.8 on a 2018 version of Unity.
Any thoughts about what I should would be welcome. I am feeling a bit stuck
Thanks.
Going only by your screenshots, I'd say it's most likely that your sprite's Pivot is in the centre - since the sprite's position in the scene is correct.
Check the sprite's import setting - it should be similar to ScionofLight's first image above, where the Pivot field should be set to Bottom.
If it is, and the problem persists, let's see some screenshots of the sprite's import settings, as well as the result of placing the 2D Demo game's Player, Brain2D, into the scene before running (to replace your own). Is he positioned correctly?
Yoohoo! Thanks, Chris. It was the import settings. Now I know.
Out of interest and for forward planning, is it wise to set all assets to have their pivot point set to bottom, or just the characters?
The only requirement so far as pivots go is for characters. It's not strictly at the bottom - but in between the character's feet, so it may be a few pixels above the bottom edge depending on your images.
I also ran into this with one of my characters.
Despite having the pivot point at import set at the bottom (in the skinning editor it also showed at the bottom), it seems like the pivot point was actually in the center.
I have manually set it to exactly between the feet and that helped.
(I have a rigged character and am setting up bones animation, which may have an effect?)
This is more for info in case anyone comes across this thread like I did.