How do I make an object go up and down

Get help using Construct 2

Post » Wed Dec 03, 2014 8:12 pm

Hey guys! I just wanted to let you know that I have read the tutorial for the platformer by Ashley. The thing about that tutorial is that it only shows how to go left and right. The thing I want to do is make it go up and down. I am making a puzzle/maze game. And on the 11th level I want there to be something that bounces off the walls at a decent speed to give the player a bit of a challenge.

Here is what I had for my code keep in mind that "movement" is my instance variable.

deathWallMove movement = "up">deathWallMove Simulate platform pressing Jump
>deathWallMove set Not Mirrored.

Also in the game the block goes down but will not bounce because the only options are left and right. My game is apparently too large to upload so I hope someone understands what I am trying to do.

TL;DR Trying to make an object bounce up and down after hitting a wall
B
4
Posts: 24
Reputation: 248

Post » Wed Dec 03, 2014 9:03 pm

Just give your object the platform behavior.
B
17
S
6
Posts: 348
Reputation: 2,608

Post » Wed Dec 03, 2014 9:05 pm

@GameThirsty I did that yes. And it just falls. That's it. Could you please explain how I can make it bounce?
B
4
Posts: 24
Reputation: 248

Post » Wed Dec 03, 2014 9:15 pm

Try this as an example to bounce
You do not have the required permissions to view the files attached to this post.
B
17
S
6
Posts: 348
Reputation: 2,608

Post » Wed Dec 03, 2014 9:24 pm

,,,,,,,,,,,,,,,,,,,,,
You do not have the required permissions to view the files attached to this post.
Image
B
64
S
23
G
7
Posts: 1,481
Reputation: 10,823

Post » Wed Dec 03, 2014 9:25 pm

@GameThirsty Yeah that is kind of like what I want, let me explain better. I would like that object (ball in this case) to bounce off of the top wall and then go down to the bottom wall, and bounce off of that. Think of the flying koopas in Super Mario. They have a set thing where they will go down and up, but in my case id like it off of a wall.
B
4
Posts: 24
Reputation: 248

Post » Wed Dec 03, 2014 9:30 pm

@GameThirsty @korbaach Here is an example of what I mean. I'd like the green square to bounce off of these black squares so it just goes up and down up and down up and down
You do not have the required permissions to view the files attached to this post.
B
4
Posts: 24
Reputation: 248

Post » Wed Dec 03, 2014 9:30 pm

Here use the bullet behavior instead, and add two solid objects
You do not have the required permissions to view the files attached to this post.
B
17
S
6
Posts: 348
Reputation: 2,608

Post » Wed Dec 03, 2014 9:36 pm

@GameThirsty You sir are a Godsend. Thank you so much dude. I really appreciate this. Is there anyway I can give you medals or reputation or something for your help? Thanks again for taking the time to help friend!
B
4
Posts: 24
Reputation: 248

Post » Wed Dec 03, 2014 9:40 pm

@Glorpy I am not sure, haha. You're welcome for the help.


Remember to set the angle of motion to 90 on the layout start because a default bullet behavior is 0 degrees which would be horizontal movement, you want 90 for vertical.
B
17
S
6
Posts: 348
Reputation: 2,608

Next

Return to How do I....?

Who is online

Users browsing this forum: Cha0tiXGamer, Google [Bot], ketramtu18, MaujDeveloper and 8 guests