The Daily Click ::. Forums ::. Klik Coding Help ::. Help needed to remedy a Custom Movement glitch
 

Post Reply  Post Oekaki 
 

Posted By Message

M@ Alexander



Registered
  29/03/2004
Points
  113
15th November, 2004 at 23:59:55 -

I used the basic Custom Movement Engine from <a href="http://www.clickteam.info/kb/start/index.php?showtopic=315"> It works great up until I added vertical scrolling, it makes the screen shake. I added an event that stopped it but it cancels out the event that keeps the player object from sinking alittle into backdrops. Could anybody provide me a solution? I'd be most thankful.

Edit: I should be more specific, I'm using MMF 1.5

This is the code to stop the player object from sinking into the floor

"* Feet 2 is overlapping backdrop ---- (Character): Set Y position to Y("Character") - 1

* Feet 2 is overlapping jump-through platform ---- (Character): Set Y position to Y("Character") - 1

* Feet 2 is overlapping moving platform ---- (Character): Set Y position to Y("Character") - 1

* Left is overlapping backdrop ---- (Character): Set X position to X("Character") + 1

* Right is overlapping backdrop ---- (Character): Set X position to X("Character") - 1"

This is fine and all for a game that only scrolls horzontally, but when I use it for a app that also scrolls Vertically, the screen shakes.

Since the character shifts up when overlapping it's always moving, I've seen games with this kind of movement and scrolling with no "screen shake", what am I doing wrong?

Image Edited by the Author.

 
n/a

醤油の兵士

Almost Human

Registered
  12/06/2002
Points
  173

VIP Member
16th November, 2004 at 00:36:14 -

I don't know where your scroll to location action is, but try putting the scroll action at the very end of the app, might do something.

 
As a boy, I wanted to be a train. I didn’t realize this was unusual—that other kids played with trains, not as them.

M@ Alexander



Registered
  29/03/2004
Points
  113
16th November, 2004 at 00:55:04 -

Wow, it worked, thanks. I would have never thought that the scrolling code needed to be seperate from my Movement Group. You saved me alot of grief, thats always been a problem with every Custom Movement Engine I've tried.

 
n/a

M@ Alexander



Registered
  29/03/2004
Points
  113
16th November, 2004 at 00:57:00 -

Nevermind, still doing it x.X

 
n/a

M@ Alexander



Registered
  29/03/2004
Points
  113
16th November, 2004 at 01:07:54 -

Figured it out

 
n/a
   

Post Reply



 



Advertisement

Worth A Click