LOG - JUMPING (2K3)
Posts
Pages:
1
I've been trying to figure out a system in my game where there are logs floating in the water. You step onto the log, and as it moves, you move with it, and you can step off at a couple places in between.
The problem is, the logs only will move if the water is a O, so you can just freely walk over the water anyways, easy fix though, just a LOT of same layer events.
What I can't figure out though, is how to get the character to stand on the log, and move with it, but be able to move back and forth, and when you reach an end point, be able to move forward onto the land.
Any help would be great!
The problem is, the logs only will move if the water is a O, so you can just freely walk over the water anyways, easy fix though, just a LOT of same layer events.
What I can't figure out though, is how to get the character to stand on the log, and move with it, but be able to move back and forth, and when you reach an end point, be able to move forward onto the land.
Any help would be great!
Don't change the settings of the tiles, change the settings of the events. Whenever the log and hero are on the water, make it so the "Through" option is turned on. They will be able to move on the water even though they wouldn't be able to normally.
To get the hero to move with the log, set up a parallel process that activates once the hero is on the log that will move the hero and the log when the corresponding buttons are pressed.
To get the hero to move with the log, set up a parallel process that activates once the hero is on the log that will move the hero and the log when the corresponding buttons are pressed.
LockeZ
I'd really like to get rid of LockeZ. His play style is way too unpredictable. He's always like this too. If he ran a country, he'd just kill and imprison people at random until crime stopped.
5958
Yes, it's called phasing mode in the popular translation of 2k3.
Make sure you don't leave the hero in phasing mode at any time the player has control! They will be able to walk through walls. If you want to move the hero with phasing, do a phase on, move, phase off all in the same movement command.
Make sure you don't leave the hero in phasing mode at any time the player has control! They will be able to walk through walls. If you want to move the hero with phasing, do a phase on, move, phase off all in the same movement command.
Well, I got the log to move by itself up and down in the water by using the phase mode.
My biggest problem is that since the log is already moving in the water prior to the hero getting on, the hero is unable to move onto the log, unless I use X&Y variables, which might work.
I'll see if the Log is equal to (endpoint) and if the hero is one step below that point, he is free to move onto it.
Then once the hero is on the log, keep the hero's x the same as the log's.
My biggest problem is that since the log is already moving in the water prior to the hero getting on, the hero is unable to move onto the log, unless I use X&Y variables, which might work.
I'll see if the Log is equal to (endpoint) and if the hero is one step below that point, he is free to move onto it.
Then once the hero is on the log, keep the hero's x the same as the log's.
Have you tried just making the log set to be Below Hero? I would imagine that would fix your problem.
No, that's not the issue. Ok, I'm thinking that you're not quite understanding what's going on.
I'm assuming you've played Super Mario bros.
When you're in the underground area, there are platforms that go either up or down, and you have to jump on it, and it keeps going up while you're on it?
It's basically like that, but obviously, not side scrolling. The log is constantly going, and you have to get onto it, and then it moves. The player has no control over where the log goes, it's just going to go up and down no matter what.
The log goes up until it hits one area. When it reaches there, you can either get off, or stay still, and the log will continue back downwards, until it hits the other area. You can again, either get off or stay on.
I'd also like you to be able to move while on the log, so that you can get off at certain points along the right or left side of the log's path.
I'm assuming you've played Super Mario bros.
When you're in the underground area, there are platforms that go either up or down, and you have to jump on it, and it keeps going up while you're on it?
It's basically like that, but obviously, not side scrolling. The log is constantly going, and you have to get onto it, and then it moves. The player has no control over where the log goes, it's just going to go up and down no matter what.
The log goes up until it hits one area. When it reaches there, you can either get off, or stay still, and the log will continue back downwards, until it hits the other area. You can again, either get off or stay on.
I'd also like you to be able to move while on the log, so that you can get off at certain points along the right or left side of the log's path.
I'd lock the actual controls and set commands to the Key Input. Up to move up, down to move down, etc. Pressing left or right will only make you face that direction. Set X, Y variable comparators at all times.
If you're at the upper part of the log, you won't move, instead just face up. And if space bar is jump, you'd probably need something to check if a log is in the direction you're facing. And meanwhile there's a an event that controls the moving of the hero on logs. Maybe put at switch to disable the motion while the jump initiates.
This is just pure guess to me though considering I've actually never built something like this.
It would however be my first thought to an approach.
If you're at the upper part of the log, you won't move, instead just face up. And if space bar is jump, you'd probably need something to check if a log is in the direction you're facing. And meanwhile there's a an event that controls the moving of the hero on logs. Maybe put at switch to disable the motion while the jump initiates.
This is just pure guess to me though considering I've actually never built something like this.
It would however be my first thought to an approach.
author=shady_ultima
No, that's not the issue. Ok, I'm thinking that you're not quite understanding what's going on.
I was addressing the issue of passability. I don't see why the hero would have any problem walking onto a log if it is set to Below Hero, even if it is moving. Obviously, once you get onto the log, you would need to have something coded to keep the two events moving together, but I was just trying to help you get the person on there.
This is interesting, I should probably look into doing this myself. Especially since I've never heard of Phase mode.
You can also create the graphic of the hero ON the log as a character set and change the log and player character graphics when they step on/off.
author=shady_ultima
I'd also like you to be able to move while on the log, so that you can get off at certain points along the right or left side of the log's path.
It would be a simple matter, except for this. Having events manually control your hero prohibits you from manually moving him at the same time. Sounds like you'd need to do some tricky work with panning somehow.
author=ariedonusauthor=shady_ultimaI was addressing the issue of passability. I don't see why the hero would have any problem walking onto a log if it is set to Below Hero, even if it is moving. Obviously, once you get onto the log, you would need to have something coded to keep the two events moving together, but I was just trying to help you get the person on there.
No, that's not the issue. Ok, I'm thinking that you're not quite understanding what's going on.
Because of the fact that the log has to use a phasing mode to go through the water, but the hero still can't walk on the water, and the program thinks the log is a the same as the water.
Make the hero go into phase mode too.
To address the issue Drakonais brought up, I would make a small picture pop up briefly when the logs reach certain points that tells the player to push a button to move the hero off. If they don't press it in time, they keep rolling...rolling...rolling down the river.
To address the issue Drakonais brought up, I would make a small picture pop up briefly when the logs reach certain points that tells the player to push a button to move the hero off. If they don't press it in time, they keep rolling...rolling...rolling down the river.
That's actually a REALLY good idea, I could have reaction commands. If you hit the proper button at the proper time you move onto the log, and if you miss it, you just have to wait. If you are ON the log, same thing, hit the button at the time and you'll get off.
Thanks man, that totally cleared it up for me.
Thanks man, that totally cleared it up for me.
Gah, I couldn't get the reaction commands to work, and I was going to give up on this, but I was playing Zelda, and saw that Oracle of Ages and Seasons both have something like what I'm looking for.
http://www.youtube.com/watch?v=X58H90K8eUI&feature=related
Watch this video. Around the 3:30 - 3:45 mark it shows EXACTLY what I'm looking for.
http://www.youtube.com/watch?v=X58H90K8eUI&feature=related
Watch this video. Around the 3:30 - 3:45 mark it shows EXACTLY what I'm looking for.
Pages:
1

















