How do I Rotate, stop, shoot. Rotate, stop and shoot etc

Get help using Construct 2

Post » Mon Aug 14, 2017 9:06 am

How do I get this to work? Cant use the rotate behaviour and so far am using the "rotate towards angle" which is triggered by another action (it rotates very nicely). My main issue is getting it to repeat. ideally I need my object to appear, wait a few seconds, then rotate shoot. The appear and wait bit I've done. Its the repeating of the rotate action thats proving difficult. Would a variable of some kind do it?

Thanks
Horace
B
4
S
1
Posts: 34
Reputation: 408

Post » Mon Aug 14, 2017 9:29 am

Yes you can set a variable, if variable=1, do the actions and then set variable to 0. If variable=0, wait an amount of time then set variable to 1.
B
53
S
21
G
95
Posts: 2,453
Reputation: 56,121

Post » Mon Aug 14, 2017 9:43 am

Thanks, man. This is going to be fun. I will brush up on my variables. Will post updates.
Horace
B
4
S
1
Posts: 34
Reputation: 408

Post » Mon Aug 14, 2017 9:45 am

You could also add the timer behaviour to the object and then set the timer to regular to repeat the rotate every x seconds.
B
24
S
9
G
4
Posts: 515
Reputation: 4,472

Post » Sat Aug 19, 2017 7:39 pm

I am testing with an instance variable and so far so good. I need to expand it so it reacts to the player movement.
B
4
S
1
Posts: 34
Reputation: 408

Post » Sat Aug 19, 2017 8:54 pm

Funny. You make 2 times the same topic. And then you abandon one. Yet, there is an example for you.
viewtopic.php?f=197&t=194984&p=1136732&sid=4b4c4b5b16d03a54cda93aa6c8e50c0c#p1136732
B
33
S
18
G
29
Posts: 2,493
Reputation: 21,450


Return to How do I....?

Who is online

Users browsing this forum: Lancifer and 0 guests