Dangerous Dave style shooting?

Get help using Construct 2

Post » Tue Jan 10, 2017 10:50 pm

I love the instant, invisible aiming Dangrous Dave uses: https://youtu.be/9Bo_dpRk3So?t=60

Obviously, invisible bullets is an option, he also aims at diagonals, is this more of a job for a line-of-sight technique?
B
41
S
12
G
14
Posts: 1,122
Reputation: 11,282

Post » Tue Jan 10, 2017 11:21 pm

Yeah, los with about a 45 degree cone.
Image ImageImage
B
172
S
50
G
183
Posts: 8,440
Reputation: 115,599

Post » Tue Jan 10, 2017 11:36 pm

newt wrote:Yeah, los with about a 45 degree cone.

Cool, is this a kind of expression? I've never actually used line of sight before, and obvious it's an extremely simple implementation of it, but I'm not sure what kind of expression to use :D
B
41
S
12
G
14
Posts: 1,122
Reputation: 11,282

Post » Tue Jan 10, 2017 11:48 pm

B
29
S
14
G
1
Posts: 133
Reputation: 3,216

Post » Wed Jan 11, 2017 12:39 am

It's a behavior. Put the bad guys in a family, and the behavior on the player.
Its pretty much all triggers, no expressions cept the range.
Image ImageImage
B
172
S
50
G
183
Posts: 8,440
Reputation: 115,599

Post » Wed Jan 11, 2017 12:31 pm


Thanks for that, I'm just trying it with LOS first! :D

newt wrote:It's a behavior. Put the bad guys in a family, and the behavior on the player.
Its pretty much all triggers, no expressions cept the range.


So, i just need the LOS to go in a straight line ahead, but what about when I turn the other direction or point the gun up? It seems there's just a cone range in degrees to set?
B
41
S
12
G
14
Posts: 1,122
Reputation: 11,282

Post » Wed Jan 11, 2017 3:57 pm

Mirrored would suffice for the opposite direction.
I don't recall it pointing up in the video.
It did change a frame if a target was higher or lower than the player.
Image ImageImage
B
172
S
50
G
183
Posts: 8,440
Reputation: 115,599

Post » Wed Jan 11, 2017 4:41 pm

newt wrote:Mirrored would suffice for the opposite direction.
I don't recall it pointing up in the video.
It did change a frame if a target was higher or lower than the player.


Yes, if he points upwards, it's at a 45 degree angle. So, should I use an attached object for this and adjust its rotation, and would mirroring it affect the angle?
B
41
S
12
G
14
Posts: 1,122
Reputation: 11,282

Post » Wed Jan 11, 2017 4:52 pm

Im pretty sure its based on the hotspot, so mirroring would not change the angle.
Of course if you place the hotspot anywhere off the center of the x axis it's going to wobble when changing.
Image ImageImage
B
172
S
50
G
183
Posts: 8,440
Reputation: 115,599

Post » Wed Jan 11, 2017 5:02 pm

newt wrote:Im pretty sure its based on the hotspot, so mirroring would not change the angle.
Of course if you place the hotspot anywhere off the center of the x axis it's going to wobble when changing.


Do you have an example of using LOS in a platform situation like this? I love the idea of using it but I just need to be able to configure it for the 4 angles and I've never actually used it before so I'm not sure what I need to do with it! :?
B
41
S
12
G
14
Posts: 1,122
Reputation: 11,282

Next

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 7 guests