The Daily Click ::. Forums ::. Klik Coding Help ::. Problem with contra style movement
 

Post Reply  Post Oekaki 
 

Posted By Message

Zephni

My other cars a Balrog

Registered
  17/10/2007
Points
  4019

Has Donated, Thank You!VIP MemberSonic Speed
11th October, 2009 at 15:22:15 -

Trying to make a Contra style movement engine.
The bit im having trouble with is falling through platform objects.

Group 0 is hard objects you cant get through atall. Group 1 is the general properties of a object you collide with, and group 2 is a object you can jump through from the bottom but walk on top (like a platform)... I want it so (like contra) when you duck and press jump on a group 2 object you fall through it.

I keep gettin horrible glitches on the Y when doing this, could some one try and append the code in and explain how they did it, il be greatfull.

Heres the engine i just started:
http://www.zephni.com/downloads/entryforcebackup2.rar

Shift is jump and ctrl is fire. (not that fireing is important coz i just wanna know how to do this platform thing, thanks)

 
dont make me divide by zero...

Don Luciano

Heavy combat pancake

Registered
  25/10/2006
Points
  380

VIP Member
11th October, 2009 at 16:30:40 -

Your conditions cannot execute whilst the group is disabled, thats for sure.
You code is very strange.

http://www.mediafire.com/?3uugzl3dbez

Edited by Don Luciano

 
Code me a sausage!

Zephni

My other cars a Balrog

Registered
  17/10/2007
Points
  4019

Has Donated, Thank You!VIP MemberSonic Speed
11th October, 2009 at 18:29:03 -

Thatnks for reply. This is a backup before i did anything towards dropping through the platform thats why it just disables movement when you duck, so nothing messes up. But i just did it properly now, so if you click the link again it wont disable the movement and will do the right stuff instead... wow none of that makes sence.

But yeh, it this download when you press down and jump when your on a platform he goes into the platform slightly, and then when you let go of down he falls through like i want him too. But i want he to just fall through straight away. This is the download again: http://www.zephni.com/downloads/entryforcebackup2.rar

 
dont make me divide by zero...

Don Luciano

Heavy combat pancake

Registered
  25/10/2006
Points
  380

VIP Member
12th October, 2009 at 13:44:01 -

Have you looked what i posted before the link?

 
Code me a sausage!

Zephni

My other cars a Balrog

Registered
  17/10/2007
Points
  4019

Has Donated, Thank You!VIP MemberSonic Speed
13th October, 2009 at 09:49:37 -

OH sorry no i didnt notice it. Alough i dowloaded it just now and looked at it. I get the way he falls through, its just getting him to stand up properly when you fall through. Coz if you hold down while hes falling through it glitches up, and he body (still crouched) ends up in the wrong place.


 
dont make me divide by zero...

Zephni

My other cars a Balrog

Registered
  17/10/2007
Points
  4019

Has Donated, Thank You!VIP MemberSonic Speed
13th October, 2009 at 10:55:19 -

K, i worked on it a bit more and here is the new download http://www.zephni.com/downloads/entryforcebackup2.rar

The only problem is now, is it wont fall through until you let go of down.
So you hold down on the platform and tap shift, then its only when you let go of down that you fall through. I want it so the second you touch the jump button you fall through and it ignores the down button.

Help is appreciated thanks

 
dont make me divide by zero...

Zephni

My other cars a Balrog

Registered
  17/10/2007
Points
  4019

Has Donated, Thank You!VIP MemberSonic Speed
13th October, 2009 at 11:25:21 -

Its ok i sorted it, thanks though!

 
dont make me divide by zero...
   

Post Reply



 



Advertisement

Worth A Click