Left Right Without Platform Behavior

Get help using Construct 2

Post » Sun Nov 17, 2013 7:53 pm

Left Right Without Platform Behavior

I'm trying to make a gun turret that rotates from left to right by holding Ctrl and then left/right arrow (Got that working)

Also when you release Ctrl it auto rotates back to the front firing position (Got that working)

But I also want when Ctrl is not press but Left/Right is it moves left to right.

How can I do this and is it possible to do it without adding the platform behavior to it so I don't have to deal with the jump or it falling to the bottom of the page?

I'm surprised no one has made a plugin like for flying... Forward/Left/Right/Back. Just simple arrow commands instead of the 8 way just break it down to 4 or even the option for 2 (Left and Right only on the object) is there such a thing?

I wish I had the skills to make one...

Thanks you in advance.
Check out my latest game RAPID-TAPIT. Get your Fingercise on with this one. A steady Tap is all you need to score points. Lift a finger and see what you can do...

Image

ALLMarkMade Designs
B
32
S
14
G
3
Posts: 356
Reputation: 5,169

Post » Sun Nov 17, 2013 8:24 pm

You can just use 'move at angle'. 180 for left, 0 for right. And always remember to set the amount to move as a multiple of dt! (for example: 'left arrow is down' > 'turret move at angle 180, 260*dt').
B
28
S
8
G
5
Posts: 429
Reputation: 6,997

Post » Sun Nov 17, 2013 8:46 pm

@Tobye Thanks, and do I do the same for the right?

Thanks for your help...
Check out my latest game RAPID-TAPIT. Get your Fingercise on with this one. A steady Tap is all you need to score points. Lift a finger and see what you can do...

Image

ALLMarkMade Designs
B
32
S
14
G
3
Posts: 356
Reputation: 5,169

Post » Sun Nov 17, 2013 8:49 pm

Checked out Walk Softly... I like it...
Check out my latest game RAPID-TAPIT. Get your Fingercise on with this one. A steady Tap is all you need to score points. Lift a finger and see what you can do...

Image

ALLMarkMade Designs
B
32
S
14
G
3
Posts: 356
Reputation: 5,169

Post » Sun Nov 17, 2013 8:50 pm

Yep! Same for any direction you want. Up-right corner is 315 degrees for example.
B
28
S
8
G
5
Posts: 429
Reputation: 6,997

Post » Sun Nov 17, 2013 8:57 pm

@Tobye That works thanks just need to get the right going thanks again...

Much appreciated
Check out my latest game RAPID-TAPIT. Get your Fingercise on with this one. A steady Tap is all you need to score points. Lift a finger and see what you can do...

Image

ALLMarkMade Designs
B
32
S
14
G
3
Posts: 356
Reputation: 5,169

Post » Sun Nov 17, 2013 9:19 pm

@Tobye I appreciate your help and I'm not trying to get you to do my work because I like to learn on my own (At least try ti figure it out first). However, I'm not familiar with you equation so I'm coming back to you.

Everything is moving fine except now when I hold Ctrl/left/right it not only rotates left/right but it move left/right as well.

I want to do one or the other meaning Ctrl/left/right rotate turret in place or left/right move left/right.

I'll figure out the auto fire and all that later...

I'm using the rotate behavior as well if that makes a difference but I'm not seeing how to tell it to not move left/right when rotating left/right and vice-verse.

Thank you for your time...
Check out my latest game RAPID-TAPIT. Get your Fingercise on with this one. A steady Tap is all you need to score points. Lift a finger and see what you can do...

Image

ALLMarkMade Designs
B
32
S
14
G
3
Posts: 356
Reputation: 5,169

Post » Mon Nov 18, 2013 1:43 am

No problem! Just have another condition that says 'is CNTRL down', then right-click it and select 'invert'. This means the condition is only true if the CNTRL key is NOT pushed.
B
28
S
8
G
5
Posts: 429
Reputation: 6,997

Post » Mon Nov 18, 2013 4:07 am

Thanks I will give that a try I do appreciate it.
Check out my latest game RAPID-TAPIT. Get your Fingercise on with this one. A steady Tap is all you need to score points. Lift a finger and see what you can do...

Image

ALLMarkMade Designs
B
32
S
14
G
3
Posts: 356
Reputation: 5,169

Post » Mon Nov 18, 2013 5:36 am

YES!!!!!!!!!!!!!!!!!!!!!! Thank you... If you every write a book on this stuff I will buy it... :)

Thanks
Check out my latest game RAPID-TAPIT. Get your Fingercise on with this one. A steady Tap is all you need to score points. Lift a finger and see what you can do...

Image

ALLMarkMade Designs
B
32
S
14
G
3
Posts: 356
Reputation: 5,169

Next

Return to How do I....?

Who is online

Users browsing this forum: DjowG, ramyaswetha and 7 guests