Help a dawg out! (Sprite sticking problem)

Post your own tutorials, guides and demos.

Post » Tue Apr 07, 2009 6:50 pm

This is just a continuation of the thread at viewtopic.php?f=3&t=3320.

Sorry for taking over the board one thread at a time, I needed to upload this file and *sniff* I had nowhere else to go.....

Um, yeah. To c&p from my last adventure....

Heylp! Heylp!

Sorry if this has come up before (I've searched the forums and came up blank) but, well, when I was a wee lad messing about in TGF all those years ago I encountered a problem importing graphics from paint, in that no matter what I did, the sprite seemed to always spaz about randomly from frame to frame. I always knew it was because of the hotspots but I could never figure out a good workflow for getting this sorted. Being 13, I eventually gave up and went outside instead.

So, been fiddling with construct, and started having the exact same problem. So, um, help! I'm trying to import a Mario sprite with the goal being to build a simple engine and then just go a bit nuts with it figuring out all the new dx9 effects. I've got a spritesheet I got off the interweb, and I've been trying to copy/paste from Paint into Construct. I've assigned the platform behavior to mario but haven't changed any variables.

Mario falls onto the test platform fine. Then, when I move, he'll either spaz through the frames really really quickly then just go to the first frame and get stuck. I've checked that the animations looping - it is. If I jump (I haven't put in the jumping animation yet) he'll spaz wildly in the air, doing all the walking frames, and when he lands just go back to being stuck in whatever frame he landed in. Also, stopping moving doesn't return him to the standing animation.

So, construct genius-types, When it comes to importing sprites, whats your workflow? I noticed that there is an import feature that cuts up a big sheet, but I always seem to slice up my sheet. Is there any set way to organise the sprites in here perhaps? Or if I'm copy-pasting, how do you prevent the hotspot screwing everything up? If anyone could paste like a step-by-step guide I'll be especially thankful and send hugs and kisses and maybe my mum if your interested.

Cheers!
B
1
G
3
Posts: 4
Reputation: 833

Post » Wed Apr 08, 2009 2:31 pm

Animation is a little tricky in Construct when it comes to swapping between animation sequences.

Firstly, you need to event each animation like so;

[code:1v4fq110]
+Press Button
-Set Animation to "Jump"
-Set animation frame to "1"
-Start Animation
[/code:1v4fq110]

or

[code:1v4fq110]
+Jump animation is finished
+Player is not jumping
+Player is not walking
-Set Animation to "Standing there scratching arse"
-Set animation frame to "1"
-Start Animation
[/code:1v4fq110]

I highly recommend looking at Deadeye's "Platform School" as it covers the whole animation thing. You can find it HERE.

In regards to hotspots, if using the central point of the sprite doesn't seem to cut it, I usually set the hotspot to a "common point" on the sprite, like a belt buckle, or nestled in between the female heroine's breasts. Not only can this be fun, it also works all the time mostly.

Lastly, if you want some place to host files, GET DROP BOX you'll love it. Best thing evar. EVAR!

~Sol

P.S. Welcome to the boards... I haven't seen you around before, so this counts as a welcome even though you've already been here for awhile xD
Tired of crappy file hosts that are crappy? Get DROPBOX - https://db.tt/uwjysXJF
Moderator
B
45
S
17
G
37
Posts: 2,853
Reputation: 25,966

Post » Wed Apr 08, 2009 3:08 pm

You shouldn't need to set the animation frame to 1, unless it's been paused ;).
B
3
S
2
G
5
Posts: 1,777
Reputation: 5,529

Post » Wed Apr 08, 2009 5:44 pm

Actually you don't need any of those events in this case... you could just use tagged animations with a little tweak as described here: viewtopic.php?f=3&t=3320#p25594
B
21
S
6
G
10
Posts: 1,024
Reputation: 7,445

Post » Wed Apr 08, 2009 10:11 pm

dawg



lol
B
52
S
7
G
6
Posts: 1,945
Reputation: 7,610

Post » Thu May 14, 2009 11:28 am

Hi evgenia :)

Just wondering why you'd bump an old thread with a completely unrelated post...
Moderator
B
5
S
2
G
6
Posts: 4,348
Reputation: 10,971

Post » Thu May 14, 2009 1:47 pm

um, pokemon?
B
16
S
10
G
5
Posts: 255
Reputation: 3,934

Post » Thu May 14, 2009 3:23 pm

<Dead
^evgenia
Image Image
B
161
S
48
G
90
Posts: 7,350
Reputation: 66,755

Post » Thu May 14, 2009 5:16 pm

B
25
S
3
G
6
Posts: 1,197
Reputation: 5,620

Post » Thu May 14, 2009 8:10 pm

it was pokemon

this is a frame from a seizure causing moment:

courtesy of wikipedia
Spriter Dev
B
87
S
21
G
12
Posts: 3,240
Reputation: 16,461

Next

Return to Your tutorials & example files

Who is online

Users browsing this forum: No registered users and 0 guests