Question about bullet behaviour

For questions about using Classic.

Post » Sun Sep 04, 2011 4:52 am

I was prototyping some stuff, and i used the bullet behaviour to make some dash-like movement. It was something like

+ Click
- deactivate 8direction
- activate bullet

+ Bullet range exceeded
- deactivate bullet
- activate 8direction

It works fine the first time, but it seems the counter doesn't get reset so it keeps flying away when i click a second time. Am i right? Is there a fast workaround?
B
12
S
2
G
2
Posts: 54
Reputation: 1,665

Post » Tue Sep 06, 2011 5:04 am

The range of the bullet behavior can't be reset. A workaround would be to create a separate object with the bullet behavior and position the sprite to the bullet object.
B
85
S
27
G
85
Posts: 5,074
Reputation: 57,882

Post » Tue Sep 06, 2011 5:16 am

you could also try making a countdown timer that begins when the bullet behaviour is activated, and then deactivates the bullet behaviour when the timer reaches zerobrent_hamel2011-09-06 05:17:07
B
69
S
10
G
9
Posts: 299
Reputation: 8,935


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 3 guests