How do I rotate the cone of view to my mouse

Get help using Construct 2

Post » Thu Sep 11, 2014 7:44 pm

Hey,

I have a litte problem, I want my player to look into the direction of the mouse (which works fine) but when ich dont move the mouse while walking to the right
the cone of view points towards my walking direction while the player still faces my mouse... how can I set the cone of views angle?
(I am setting the rotation of the player every tick to position of the mouse)
B
3
Posts: 3
Reputation: 181

Post » Thu Sep 11, 2014 7:57 pm

If I understand correctly the cone of view is relative to the objects angle, so that should be no problem if the behaviour is on the player object..
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Fri Sep 12, 2014 11:15 am

Well I thought that too, but I have monsters only appear if they are in line of sight, but they only appear if I walk towards them, and disappear if I move aways from them while my player is looking towards the monster and the mouse pointing on it
B
3
Posts: 3
Reputation: 181

Post » Fri Sep 12, 2014 11:26 am

Attach your capx to your post, it will make it easier for us to investigate the current issue with exactly how you've set up your project so far.
New to Construct ? Where to start

Image Image

Image Image

Please attach a capx to any help request or bug report !
Moderator
B
284
S
109
G
91
Posts: 7,317
Reputation: 87,483

Post » Fri Sep 12, 2014 4:02 pm

Okay I am not sure why but for some reason it works now...
I used a workaround and now implemented the solution with LOS again and it worked...
could it be because of the imagepoints on the player?
B
3
Posts: 3
Reputation: 181


Return to How do I....?

Who is online

Users browsing this forum: Lancifer and 5 guests