Wintermute Engine Forum

Wintermute Engine => Technical forum => Topic started by: Connway on June 16, 2006, 09:26:34 PM

Title: Help for a beginner
Post by: Connway on June 16, 2006, 09:26:34 PM
I'm new to the Wintermute Engine and have started a simple project to help me learn the basic functions. I have read some of the Wintermute Documentation, but not all of it.

I've encountered some problems with my project. As you can see from the below shots, the stick figure stops short of top wall and can go way too far down the bottom wall.

(http://www.geocities.com/connway0/Wintermute_shots/Test_shot1.jpg)
(http://www.geocities.com/connway0/Wintermute_shots/Test_shot2.jpg)

I'm not sure if this has anything to do with the problem, but I have set the hot spot to the bottom-right corner of the sprite images.

(http://www.geocities.com/connway0/Wintermute_shots/SpriteEdit1.jpg)

But, as you can see below, I cannot place the top of the head of my sprite outside any of the "floor" region.

(http://www.geocities.com/connway0/Wintermute_shots/SceneEdit1.jpg)
(http://www.geocities.com/connway0/Wintermute_shots/SceneEdit2.jpg)

Basically, I'd like the engine to block the actor from moving if the feet reach a certain point.

Any help would be appreciated.

Thanks
Title: Re: Help for a beginner
Post by: Mnemonic on June 17, 2006, 08:22:20 AM
Are you sure the actor is actually using the correct sprite you've defined in SpriteEdit?

The position of your character's feet is indeed defined by the "hot spot" position within the sprite, so if the hotspot is placed at the bottom part of the sprite, it *should* work correctly. The behaviour you're getting would suggest the hotspot is at the top part of the character..
Title: Re: Help for a beginner
Post by: Connway on June 17, 2006, 10:35:49 PM
Ah, thank you Mnemonic. You were right. I saved my Sprite in a different folder and forgot to import it into the actually project folder. Now it works fine.

Thanks again.