How do I make an object go up and down

Get help using Construct 2

Post » Wed Dec 03, 2014 9:48 pm

@GameThirsty. I basically have it right now as:

deathWallMove on collision with Wall > deathWallMove Set bullet angle of motion to 90 degrees. Do you think there is a way to make it so on other walls it will bounce horizontally? Actually I could just make horizontal movement and vertical two different sprites/objects. Thanks again for the help!
B
4
Posts: 24
Reputation: 248

Post » Wed Dec 03, 2014 9:55 pm

or just set the angle of motion to 0 on ones you want to go horizontal walls
B
17
S
6
Posts: 348
Reputation: 2,608

Post » Wed Dec 03, 2014 10:18 pm

@GameThirsty Hey man one more thing, sorry. I find the more I let the level run the objects will start all going up and down instead of back and fourth...hm
B
4
Posts: 24
Reputation: 248

Post » Wed Dec 03, 2014 10:34 pm

Which ones? the ones that you set the angle to 0 or 90
B
17
S
6
Posts: 348
Reputation: 2,608

Post » Wed Dec 03, 2014 10:44 pm

@GameThirsty The ones that are at the 90. If you leave the game going for like 30 seconds they start lining up. I'll show an example in text

What they should be doing 30 seconds after the layout begins: ^ v ^ v AFTER BOUNCING OFF WALL: v ^ v ^

What it is doing 30 seconds after: ^^^^ AFTER BOUNCING OFF WALL: vvvv or pretty dang close
B
4
Posts: 24
Reputation: 248

Post » Wed Dec 03, 2014 10:51 pm

I do not think im sure what you mean, can you give me the .capx
B
17
S
6
Posts: 348
Reputation: 2,608

Post » Wed Dec 03, 2014 10:58 pm

@GameThirsty Sadly the file is too big. I don't think it is a big deal, just a personal preference thing.
B
4
Posts: 24
Reputation: 248

Post » Wed Dec 03, 2014 11:00 pm

@GameThirsty Also what do you mean about changing the angle of motion for the ones I want to go horizontal. The only thing I see is Speed, Acceleration and Gravity. The only other way would be change it in the events, but that would mess up the vertal
B
4
Posts: 24
Reputation: 248

Post » Wed Dec 03, 2014 11:14 pm

You have to set the angle of a bullet motion via event like in the example I gave you.
B
17
S
6
Posts: 348
Reputation: 2,608

Post » Wed Dec 03, 2014 11:19 pm

@GameThirsty But what if I wanted horizontal and vertical bullets in the same layout?
B
4
Posts: 24
Reputation: 248

PreviousNext

Return to How do I....?

Who is online

Users browsing this forum: R0J0hound and 8 guests