[SOLVED] Ranged attack question

For questions about using Classic.

Post » Fri Jun 10, 2011 5:06 pm

[quote="Jayjay":27njurf5]Hmm, now it looks like a bug with the LOS behaviour. I've had similar problems in my game using LOS :?

Maybe have a variable "HasLOS" for each object, then check if that variable is true. Then, outside of the for loop have the condition "En6box Has LOS to Player" and action "HasLOS = True" and then another condition below "Else" with action "HasLOS = False".[/quote:27njurf5]

Crash anyway :(
B
54
S
11
G
4
Posts: 250
Reputation: 5,074

Post » Fri Jun 10, 2011 8:10 pm

Sorry it appears my understanding of overlapping at offset was wrong.
As it is now overlapping at offset only checks for a single point, not all points between.....

Here is an cap using dummies instead.
[url:vzqa8dqv]http://dl.dropbox.com/u/666516/fakelosplatform.cap[/url:vzqa8dqv]
Should be fairly straight forward, cept angle(x1,y1,x2,y2), which gives you the angle.
Image Image
B
161
S
48
G
90
Posts: 7,350
Reputation: 66,755

Post » Fri Jun 10, 2011 10:08 pm

You have my eternal gratitude newt!!!
B
54
S
11
G
4
Posts: 250
Reputation: 5,074

Previous

Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 6 guests