Are you using the built-in platform movement? Why not create your own or use the Platform Movement Object?

Are you using the built-in platform movement? Why not create your own or use the Platform Movement Object?
You just lost me...? More information pleaseOriginally Posted by dragonguy

There is a tutorial on the tutorial page that goes over this
http://www.clickteam.com/eng/learning_resources.php
But I would caution you, based on some of your other questions you might want to run thru some of the other tutorials first before trying to build your own platform engine.
A lot of people try to jump in too deep right away first you need to get a good grasp of the program before trying some more advanced type of projects.
Thanks... yeah I'm not trying to do anything horribly complicated. At this point I just want my guy to shoot consistently and properly... it doesn't seem like it should be this difficult. :/
Never had this problem with Klick n Play...
The problem appears to be related to the "facing" issue.
Right now I have to lines - if (dude) is facing right and player pushes fire, it fires (or creates, they both work equally well) the missile. Same for facing left.
The problem comes in when the guy falls. Apparently his direction is replaced with down and then it won't let him fire again until he has advanced one direction or another.
As a testament to this, I tried eliminating the direction requirements all together, and now he shoots perfectly - but only in one direction.




You're right, this happens because the player is considered as facing down the way when he's moving down.
To force shooting left or right, what I always do is keep a separate invisible object that doesn't even move - just sets its direction to left or right depending on which of those keys was last pressed - and use the direction of that for shooting rather than that of the player.
You don't have to do anything overly complex... just one step at a time.
Took the words right out of my head... I was thinking about making a counter off the screen that does this. Glad to hear that it works in advance.Originally Posted by DavidN
Reminds me of the Klick N Play days where I didn't even know counters existed and had an object appear to hit 9 which would then turn into an 8, etc... haha.
Ok, next Newb question... it regards scrolling.
I've checked out the tutorial and have figured out two ways to do it:
A) Screen is always centered on (Dude) creating a dizzying constant-scroll
B) Set the screen to center on (Dude) when he reaches near the edge, but then it is still jumpy.
I'm looking for a clean effect that only comes into play when he's near the edge. You know, like Super Mario or Megaman. What am I missing?
I'll have to fool around some more...
you probably want something like this :
When X Right frame - X("Player")<20
Center horizontal display to XRight Frame + Window Width+4
This should make a smooth (4px/frame) scrolling to the right when the player is less than 20px from the right side. Is it the kind of thing you're looking for ?
That sounds great, but I'm a bit confused as to how to input that into the program itself. Please forgive my newbliness.Originally Posted by Corentin
I've tried inputting it in a few different ways but the compy no likie... could you help me with that?