![]() |
PlayerTouchingMe?
Hello! I need a little help with this.
It should be like... NPC Code: Nappa Helped me and it turned too: NPC Code: But I want that if you are touching/under it still will NPC Code: But it return too NPC Code: With the timeout :( |
instead of playerx!=x I would use a distance checker.
In case you don't know: distance=sqrt((change in x)^2+(change in y)^2); I would make sure to deal with the change in coordinates from the center of the image and the center of the player. |
Quote:
|
Quote:
|
isnt the exact playerx and playery near the left hand corner of the players head?
|
Quote:
|
Quote:
|
1 Attachment(s)
But, if it would be a rectangle, wouldn't it be a bit weird how we look in real life? I mean, look at this:
|
Ain't gonna download a bitmap, dawg.
|
1 Attachment(s)
Quote:
|
Thanks, dope G-Dawg
What in the heck. Did you even read the thread, Cyrin? The objective from the beginning was to make an algorithm to test if the player is touching the NPC. |
Quote:
|
I have no idea what is in that picture, but I'm going to print it and post it on my brothers wall :megaeek:
|
Quote:
Oh and Kai, if you start downloading an .BMP, you can click on "Open". |
Quote:
Quote:
|
Quote:
In-Range a in <b,c>, a in |b,c>, a in <b,c|, a in |b,c| In-Array a in {b,c,...}, {a,b,...} in {c,d,...} a in c (assuming c in this example is an array (c = {0,1,...etc}) |
| All times are GMT +2. The time now is 02:22 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.