Bullet Behavior Speed

Get help using Construct 2

Post » Sat Nov 12, 2011 8:38 am

Hello there,

I have a little problem ,

I have to set a bullet with speed 10, but when my charachter is behind the bullet it's speed become 100 and then 0 on collision with another object.

Here is what i've do for now :

behaviors/bullet/speed 10
character <= BULLET.X-5 set bullet speed to 100
bullet on collision with another object set bullet speed 0

Unfortunately the bullet still continue to run with speed 100.

Alternatively it could help me also a way to stop my bullet on collision with another object..

may you help me?
B
12
S
3
G
5
Posts: 174
Reputation: 4,018

Post » Sat Nov 12, 2011 10:11 am

Don't you prefer destroying the bullet on impact ?

And to set the speed back to 10 maybe you should add

"character.x NOT <= BULLET.X-5 set bullet speed to 10"

...after your events

saludos :D
B
9
S
2
G
4
Posts: 19
Reputation: 2,648

Post » Sat Nov 12, 2011 12:24 pm

no i don't need the bullet will destroy.

How can i make "character.X NOT" ?
B
12
S
3
G
5
Posts: 174
Reputation: 4,018

Post » Sat Nov 12, 2011 4:25 pm

Right click on the condition and click on "Invert"
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 7,000
Reputation: 57,795


Return to How do I....?

Who is online

Users browsing this forum: jeffige, Yahoo [Bot] and 21 guests