Suggestion: bullet out of range

New releases and general discussions.

Post » Fri Apr 18, 2008 6:28 pm

When I select a bullets range, and its destroyed when it leaves this range, there doesn't seem to be any way to trigger an event when the bullet is destroyed for being out of range.

IE: bullet is out of range and has been destroyed - > create explosion
Image Image
Scirra Founder
B
124
S
37
G
25
Posts: 3,945
Reputation: 44,887

Post » Sat Apr 19, 2008 12:22 pm

[quote="Gullanian":guem1tjv]When I select a bullets range, and its destroyed when it leaves this range, there doesn't seem to be any way to trigger an event when the bullet is destroyed for being out of range.

IE: bullet is out of range and has been destroyed - > create explosion[/quote:guem1tjv]

I haven't tried making any events like this... but is there something like "bullet has been destoryed > create explosion" or (in basic terms) "bullet is x distance from player (calculating pixel distance) > create explosion" ???
Tired of crappy file hosts that are crappy? Get DROPBOX - https://db.tt/uwjysXJF
Moderator
B
45
S
17
G
37
Posts: 2,853
Reputation: 25,966

Post » Sat Apr 19, 2008 12:47 pm

you could do is x distance from player where x is the range of the bullet, but if you are moving...
Image Image
Scirra Founder
B
124
S
37
G
25
Posts: 3,945
Reputation: 44,887

Post » Sat Apr 19, 2008 1:13 pm

[quote="Gullanian":2lzzmp1v]you could do is x distance from player where x is the range of the bullet, but if you are moving...[/quote:2lzzmp1v]

You could control it from x distance from player based on the firing position rather than the players current x.y position... this could be handled by an alterable value of the bullet objec itself... Each time the bullet is fired, an alterable value is made for both X and Y and the bullet refrences that rather than the players current x.y position.
Tired of crappy file hosts that are crappy? Get DROPBOX - https://db.tt/uwjysXJF
Moderator
B
45
S
17
G
37
Posts: 2,853
Reputation: 25,966

Post » Sat Apr 19, 2008 1:49 pm

Hey!

Thanks, yeah that would work, but it would be easier just to have an event for it, that's the whole point of construct.

Afaik its done I think, so we can look forward to it in the next update!

Tom
Image Image
Scirra Founder
B
124
S
37
G
25
Posts: 3,945
Reputation: 44,887

Post » Sat Apr 19, 2008 3:39 pm

Yeah, there's a trigger for a bullet leaving range in the next build.
Scirra Founder
B
359
S
214
G
72
Posts: 22,946
Reputation: 178,478


Return to Construct Classic Discussion

Who is online

Users browsing this forum: No registered users and 5 guests