The Daily Click ::. Forums ::. Klik Coding Help ::. My movement engine
 

Post Reply  Post Oekaki 
 

Posted By Message

SephirothClone13



Registered
  04/06/2009
Points
  28
8th June, 2009 at 11:39:37 -

Hey guys, this is version 2 of my movement engine for my game:

http://www.angelfire.com/planet/atrimoproductions/MEv2.mfa

It uses Liquixcat's 'Quick Jumping Engine' (http://www.create-games.com/forum_post.asp?id=153400) to set the gravity and jumping functions. Though when you jump (with either player) both player object jump. Could someone please take a look and help me out?

I'm a n00b at movement engines if you hadn't guessed already

 
n/a

Assault Andy

Administrator
I make other people create vaporware

Registered
  29/07/2002
Points
  5686

Game of the Week WinnerVIP Member360 OwnerGOTM JUNE - 2009 - WINNER!GOTM FEB - 2010 - WINNER!	I donated an open source project
8th June, 2009 at 12:42:46 -

You have accidently used the same loop for both players. When you press up it calls the loop "jump" which in turn makes both of them jump. You need to have seperate loops so that when you press up it calls player one's jump loop and when you press T it calls the other player's jump loop.

Rename one loop "jump1" and the other "jump2". Don't forget to rename the conditions aswell for "On loop: Jump1" and "On loop: Jump2".

 
Creator of Faerie Solitaire:
http://www.create-games.com/download.asp?id=7792
Also creator of ZDay20 and Dungeon Dash.
http://www.Jigxor.com
http://twitter.com/JigxorAndy

SephirothClone13



Registered
  04/06/2009
Points
  28
10th June, 2009 at 18:42:31 -

Thanks Andy for the help.

But now I have more questions. With that fixed I moved on to version 3, thanks to a little help from Sקɪтzпαɢʟ I managed to sort out the collisions, but when one object lands on the other, it pushed the other object away. AND, when I copied the events from the engine to my game the collisions messed up. any thoughts on why this could be?

http://www.angelfire.com/planet/atrimoproductions/MEv3.mfa

 
n/a

[DELETED]

Likes to put dots on paper

Registered
  08/12/2008
Points
  118

MushroomVIP MemberARGH Sign
11th June, 2009 at 13:20:04 -

When you copy events from one file/frame to a seperate one, the order of events will often change and this can create a lot of bugs that are very annoying and will puzzle you. Compare the original and make sure all of your events, conditions and actions are in their respective orders. MMF works in the order it is told, and you make be telling it to do something which is dependent on another thing which hasn't happened yet!

 
n/a

SephirothClone13



Registered
  04/06/2009
Points
  28
11th June, 2009 at 20:51:45 -

All of the events are in the right order and it still messes up... the object on the left (this is in the game not the engine) wont move passed the x value of the object on the right and when it touches it, the object on the right pushes the object on the left repeatedly to the left. Any thoughts? I'm hoping that this will get resolved without me having to post the actual game mfa lol

 
n/a

[DELETED]

Likes to put dots on paper

Registered
  08/12/2008
Points
  118

MushroomVIP MemberARGH Sign
11th June, 2009 at 23:40:19 -

Are you talking about the player objects? Player on the left cannot pass right player's x position?
I'm sure someone will understand the bug you are having but it might be overall easier to upload the .mfa if you get really stuck and we can't help you enough.

 
n/a
   

Post Reply



 



Advertisement

Worth A Click