Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Micahsa

Pages: [1]
1
Help, Errors, FAQ / Re: Newbie - Jumping
« on: 2008-03-16, 03:31:49 PM »
I get the logic and was also wondering about why it actually mattered from a code point of view.  But standard practice certainly helps with debugging, so thanks for the recommendation.

2
Help, Errors, FAQ / Re: Newbie - Jumping
« on: 2008-03-12, 07:10:13 PM »
That was it.

I had React to Solid, snap to ground, limit velocity, accelerate, gravity, move, then inertia.

I pulled Move up right after react to solid and works like a charm now.

Order of operations always hated me :)

Thanks!

3
Help, Errors, FAQ / Re: Newbie - Jumping
« on: 2008-03-12, 09:40:31 AM »
Solidity is set to SolidTileShape.

The only difference I can find between mine and the tutorial (aside from the graphical differences and such) is that I have two graphical sets, one for world graphics, one for sprite graphics.  I also have two framesets, again, one for world graphics, one for sprite graphics.

I have one tileset with all of them in there and one tile category of "solids".

My sprite solidity rule is: Do ReactToSolid and it comes right after my left, right and jump rules, before anything else.


4
Help, Errors, FAQ / Re: Newbie - Jumping
« on: 2008-03-11, 11:34:38 PM »
Sorry for the delay, but thanks for the help.  Got it working and the isBlocked is nice, missed that one.

Another issue now however.  I started a new project from scratch, making all the basic componants and such, but my solid tiles are only solid from the top and bottom.  My sprite can jump onto them and when he tries to jump from underneath a floating one, he is blocked (which I want).  But he is not blocked from running horizontally through the tiles from either side.

I pulled out the tutorial and have been reading through it checking my work but can't find any steps I missed or anyplace that I'm able to distinguish between fully solid or partially solid. 

Thanks and sorry if its a simple thing (which I'm sure it is  :whistle:)


5
Help, Errors, FAQ / Newbie - Jumping
« on: 2008-03-03, 10:57:34 PM »
So, went through the whole tutorial, everything works fine, I add gravity and all, make a few custom sprites, etc.

But I want to add jumping.  For the life of me I can't get the right setup.

Taking an example from the SHFL demo project, I have:

If IsInputPressed
SpriteBase.InputBits.Button2
Inital only = true

then: Do = -10 (output to dy)

I get my sprite to jump, but he jumps a tiny hop and falls back down and I can't figure out how to change the jump height.
Also, he can jump mid fall so he keeps going up and up if I keep pressing fast enough.

Is there something more complicated to basic jumping? 


Pages: [1]