line of sight in paralax layer

Get help using Construct 2

Post » Mon Apr 25, 2016 9:29 pm

Hello, just now I ran into this problem with distortion and wonder if there even is a solution.

Image

I'm using several layers of paralax background, and in one of the background layers I have creatures with line of sight. Problem is, the paralax movement doesn't apply on the center of their view, nor their actual presence at all in fact. When my player has line of sight, it again notices the position of the creature on place where it would be if it weren't in the paralax layer

Im using a "bulet" function for the movement of the creatures.
I tried this. I turned off the paralax effect and I assigned different moving speed of the bullet to the left and right movement keys. But this did not gave me satisfactory results. And The bullet of course behaved differently when I got to the end of the level and camera stopped scrolling.

thank you in advance for any help
B
4
Posts: 9
Reputation: 218

Post » Tue Apr 26, 2016 3:19 am

Although it is difficult to determine your problem from the description alone, you might try pinning an "eye" placeholder sprite to the monster check line of sight from. You can use that to debug where exactly on the screen the eye is and what is and isn't in line of sight.
Mistakes were made.
B
49
S
24
G
107
Posts: 1,579
Reputation: 60,299

Post » Tue Apr 26, 2016 10:17 am

Thank you ossy,
I've thought about this.
However, i know the approximate position of the actual line of sight position. I have the idea of where it is and where it should be. It creates a field under the creature and my character gets transparent when he steps into that field. But when I take the creature layer and set lower paralax value, lower than the value of the layer my character is in, the field moves in different speed than the creature. My character is seen somewhere else than the creature is present, and the distance eventually changes as I move around the level. As the displacement caused by the paralax scrolling messes with the position more and more.

Does this make sense?

Should I upload capx?
B
4
Posts: 9
Reputation: 218

Post » Tue Apr 26, 2016 9:24 pm

I think I understand, but it would be easier to make sure with a capx. It sounds like you just need to put the line of sight field object on the same layer as the monster.
Mistakes were made.
B
49
S
24
G
107
Posts: 1,579
Reputation: 60,299

Post » Wed Apr 27, 2016 5:08 pm

Message: Skvor can only post plain text URLS until they have 500 rep. 1 URLS modified. Why?
The field is the cone of view

https://www.
dropbox.com/s/x496uir5b3o6few/roadside%20bloom.capx?dl=0

thanks!
Last edited by Skvor on Wed Apr 27, 2016 9:51 pm, edited 2 times in total.
B
4
Posts: 9
Reputation: 218

Post » Wed Apr 27, 2016 7:22 pm

Link truncated, break off the https://www part?
Mistakes were made.
B
49
S
24
G
107
Posts: 1,579
Reputation: 60,299

Post » Wed Apr 27, 2016 9:53 pm

oh, haven't notice... fixed
B
4
Posts: 9
Reputation: 218


Return to How do I....?

Who is online

Users browsing this forum: Lancifer, Mayfly and 9 guests