The Daily Click ::. Forums ::. Klik Coding Help ::. Sinking into platforms
 

Post Reply  Post Oekaki 
 

Posted By Message

CraigT



Registered
  22/01/2007
Points
  689

Has Donated, Thank You!
2nd July, 2008 at 14:43:22 -

I am having a problem (as some may have found) with my game Trent 3 where if you do a 'butt-stomp' you sometimes fall through or sink into a platform.
I have included a link to the basic engine for trent 3, if anyone with experience of making a good platform engine could have a look at it and correct it that would be great.
This is the first platform game where I have even included things such as moving platforms etc so the coding may be rubbish and need fastloops or something i know nothing of or it could just be a simple noobish mistake!
I just want it sorted quickly, I should have done it before I uploaded it but there you go.

http://www.mediafire.com/?kdmjhjvgouw


 
n/a

Ski

TDC is my stress ball

Registered
  13/03/2005
Points
  10130

GOTW WINNER CUP 1!GOTW WINNER CUP 2!GOTW WINNER CUP 3!KlikCast HelperVIP MemberWii OwnerStrawberryPicture Me This Round 28 Winner!PS3 OwnerI am an April Fool
Candy Cane
2nd July, 2008 at 14:44:56 -

Just use a PMO object >.<;

 
n/a

CraigT



Registered
  22/01/2007
Points
  689

Has Donated, Thank You!
2nd July, 2008 at 15:14:23 -

Hmm, I got MMF2 about half way through making trent 3 (had tgf2 before) so havent used extentions like that.(all these new extentions is intimidating!) I will try and learn how to use it but would rather keep with what i'm doing if possible, obviously if someone can help with the current engine.

 
n/a

OMC

What a goofball

Registered
  21/05/2007
Points
  3309

KlikCast Musician! Guy with a HatSomewhat CrazyARGH SignLikes TDCHas Donated, Thank You!Retired Admin
2nd July, 2008 at 15:48:58 -

So, when is everyone going to pitch in and buy me a copy of MMF2? I have TGF Pro and TGF2, however both times I sent in for the discount I didn't get a reply...

Anywho, Master Tait, I'd be happy to look over your code tomorrow, or as soon as I can get to it. I'm taking a bit of a long break from my own projects, and am using the time to help everyone I can.

 

  		
  		

Ricky

loves Left For Dead 2

Registered
  28/12/2006
Points
  4175

Has Donated, Thank You!Game of the Week WinnerVIP MemberWii OwnerHero of TimeGOTM Winner! - November 2009I am an April Fool
2nd July, 2008 at 15:53:15 -

NO. PMO is for lazy people.

Since your engine is accurate most of the time, you should put a small collision detector near the bottom of trent.

Alway
-set X to trents X (assuming his hot spot is in the center)
-set Y to Y_bottom trent -1

Collision detector overlaps backround
-set trent's Y to itself -1

Image Edited by the Author.

 
-

CraigT



Registered
  22/01/2007
Points
  689

Has Donated, Thank You!
2nd July, 2008 at 15:57:27 -

OldManClayton, strange, I got a reply 1st time from clickteam and got a lovely 33.75 discount! Anyway, yeh, that would be nice if you could look at it and Ricky, I will try that thanks.

 
n/a

Ski

TDC is my stress ball

Registered
  13/03/2005
Points
  10130

GOTW WINNER CUP 1!GOTW WINNER CUP 2!GOTW WINNER CUP 3!KlikCast HelperVIP MemberWii OwnerStrawberryPicture Me This Round 28 Winner!PS3 OwnerI am an April Fool
Candy Cane
2nd July, 2008 at 16:06:28 -


Originally Posted by -Ricky-
NO. PMO is for lazy people.




To be honest, Ive seen much more professional results with the PMO, and it's easy to manipulate quite a lot. Custom movements tend to feel floaty and typically click.

 
n/a

Dr. James MD

Addict

Registered
  08/12/2003
Points
  11941

First GOTW AwardSecond GOTW AwardThird GOTW AwardPicture Me This -Round 26- Winner!
2nd July, 2008 at 16:39:04 -

I use PMO just because it's ruddy easy to manipulate. And like every other fair sized click game using PMO I've abused the gravity flip as well

 
Image
http://uk.youtube.com/watch?v=j--8iXVv2_U
On the sixth day God created Manchester
"You gotta get that sand out your vaj!" x13
www.bossbaddie.com

AndyUK

Mascot Maniac

Registered
  01/08/2002
Points
  14456

Game of the Week WinnerSecond GOTW AwardHas Donated, Thank You!VIP Member
2nd July, 2008 at 17:01:54 -

The reason you sink into the floor or fall through is because you're moving at more pixels per game loop then the entire object.

so your collisions aren't checked every pixel you will get that.


Try coding an engine that checks collisions more often.

 
.

CraigT



Registered
  22/01/2007
Points
  689

Has Donated, Thank You!
2nd July, 2008 at 17:55:27 -

I think I have solved the problem! *Touch wood*Thanks anyway guys. It was the speed Trent was falling at, if I reduce it after a certain time it slows him down again and he doesnt now fall through the platforms. Joy! However, some people disliked certain other aspects like the acceleration and jumping so the link to my coding is still there to look at if anyone wants to show me how it should be!

 
n/a

AndyUK

Mascot Maniac

Registered
  01/08/2002
Points
  14456

Game of the Week WinnerSecond GOTW AwardHas Donated, Thank You!VIP Member
2nd July, 2008 at 19:23:42 -

well if you look at what i wrote, it makes sense that slowing him down would stop that. It's not the best solution though really..

 
.

Codemonkey

Always Serious

Registered
  06/11/2007
Points
  164

Code MonkeyKlikCast StarVIP MemberAttention GetterWii Owner360 OwnerThe Cake is a LieCardboard BoxHero of TimeI'm a Storm Trooper
I'm on a BoatIt's-a me, Mario!PS3 OwnerSonic SpeedGOTM - SEPTEMBER 2009 - WINNER!Evil klikerPokemon Ball!I am an April Fool
2nd July, 2008 at 19:38:46 -


Originally Posted by -Adam-

Originally Posted by -Ricky-
NO. PMO is for lazy people.




To be honest, Ive seen much more professional results with the PMO, and it's easy to manipulate quite a lot. Custom movements tend to feel floaty and typically click.



Agreed, Kynnt Stories used PMO.

 
You can log off any time you like, but you can't ever leave.

Ricky

loves Left For Dead 2

Registered
  28/12/2006
Points
  4175

Has Donated, Thank You!Game of the Week WinnerVIP MemberWii OwnerHero of TimeGOTM Winner! - November 2009I am an April Fool
3rd July, 2008 at 00:39:09 -


Originally Posted by -Codemonkey-

Originally Posted by -Adam-

Originally Posted by -Ricky-
NO. PMO is for lazy people.




To be honest, Ive seen much more professional results with the PMO, and it's easy to manipulate quite a lot. Custom movements tend to feel floaty and typically click.



Agreed, Kynnt Stories used PMO.



Ah, didn't know that. Ive made myself look pretty silly, especially since ive never tried pmo

 
-

Peblo

Custom ratings must be 50 characters or less

Registered
  05/07/2002
Points
  185

Game of the Week WinnerVIP MemberI'm on a Boat360 OwnerAttention GetterThe Cake is a LieCardboard BoxHero of TimePS3 OwnerIt's-a me, Mario!
I'm a Storm TrooperSonic SpeedStrawberryI like Aliens!Wii OwnerMushroomGhostbuster!
3rd July, 2008 at 03:42:58 -

Faaaastloops fastloops fastloops.

Image Edited by the Author.

 
"Isn't it always amazing how we characterize a person's intelligence by how closely their thinking matches ours?"
~Belgarath
   

Post Reply



 



Advertisement

Worth A Click