Hi, I'm working on a scrolling game in which will have moving platforms. I know how to make the platforms work with the scroller, but one key piece of information that I need is missing. I would like to know how I can get the platforms to move while the player is roaming and not on any of them. I know how to make a platform function vertically (y position). It's horizontally (x-position) that I'm concerned with. For example, when a player walks up to a platform, have said platform following it's path to and from point A and point B, horizontally. I cannot fathom how this can be done while the game is a scroller, being as how you have to set object's and terrain's x position to:
forever set x to [scrollx + 480 * 0] //and add 1 for every terrain, etc.^ with that, things only move according to it, which is why I'm confused.
Last edited by Zparx (2012-01-30 15:00:47)
Offline
Wrong forum
Offline
Offline
This is the first topic you posted, then the second one was posted about 8 minutes later.
Last edited by rdococ (2012-01-30 16:20:21)
Offline
I think this belongs to the help with scripts forums.
Offline
Lol, look guys, sorry for spamming but no one ever looks at my posts regardless of how many times I bump. I was just hoping that by posting more than once I could get help. It worked, but it seems I've made people.....mad? Idk, but I will try to tone down the amount of my posts (:
Offline
Don't worry, I wasn't mad, I was just pointing it out
Offline
Try this:
when gf clicked forever change (scrollx) by 10 bounce
Offline
Yes, by posting more than once of the same topic is spamming and any kind of spamming is discouraged, even for help. And the sample project of scrolling doesn't have moving objects, so that wouldn't help.
You'd have to make a script that makes it always change with the scroll x, and also make a script that makes it go back and forth (or any other movement, up/down, etc.) they have to be separate though.
Offline