bullet behavior problem

Get help using Construct 2

Post » Wed Mar 25, 2015 2:57 pm

Hi all,

i have a sprite attached to a invisible sprite with bullet behavior. However when i use certain events related to position, after the invisible bullet sprite reaches its destination, it begins to shake like crazy. Its propably trying to correct its position but it actualy never gets to the desired pixel/point that i need. Is there a way to avoid the shaking? I want that the bullet behavior deactivates at a certain point.
Thanks
B
8
S
4
G
1
Posts: 191
Reputation: 1,873

Post » Wed Mar 25, 2015 3:00 pm

A timer would be best. Just figure out how much time it takes using the speed its traveling at.
You can also use the distance its travelled, if you know what it will be.
Image Image
B
163
S
48
G
99
Posts: 7,435
Reputation: 71,492

Post » Wed Mar 25, 2015 3:13 pm

newt wrote:A timer would be best. Just figure out how much time it takes using the speed its traveling at.
You can also use the distance its travelled, if you know what it will be.


Thing is, i can't use timer since the sprite can be at various distances... i would need it to be at certain point (or at least in range of 2-3 pixels from desired distance). Tried overlaping but thats also not quite what i need. Is there an aproximation expresion? Do this -> when sprite X distance is Player.X-5( 2-3 pixels plus or minus)
B
8
S
4
G
1
Posts: 191
Reputation: 1,873

Post » Wed Mar 25, 2015 3:22 pm

Its done :). i used overlaping from a certain distance then used time
B
8
S
4
G
1
Posts: 191
Reputation: 1,873


Return to How do I....?

Who is online

Users browsing this forum: Farsight, fredriksthlm and 6 guests