![]() |
Returning players clientside
PHP Code:
|
PHP Code:
|
Quote:
|
Sorry, I was making some changes.
Quote:
|
No dice :s
If it makes a difference, I'm trying to do this on a gmap, so that may cause some problems. Just in case that changes anything that I'm not catching EDIT: tried it in a singular level. No luck there either |
You shouldn't need allplayers.
Try: PHP Code:
echo(players.size()); and see if it's actually just returning 1. I don't remember if players returns objects or id's. |
Quote:
PHP Code:
|
Quote:
|
He said he was making a hit detection system, and in order to do that, he'll need distance checks so it only registers attacks from players within 1-2 tiles.
|
Quote:
Quote:
I mean that method can work just fine and is probably what I'll end up doing, but I'm trying to figure out why all of the players in the level aren't being returned o_o |
PHP Code:
|
I really don't think you're reading what I'm writing... :p
I'm well aware where echo() will output. I'm just wondering why I can't return all of the players in a level. |
I just logged in player to test it; it's working. Sorry didn't realize you fixed my typo. That's what I'm working with, it's hard for me to help if you don't provide code for us to look at.
PHP Code:
|
Errrrr I was being dumb
I was drawing a circle around all of the players and it was only showing on one, so instead of looking at how I wasn't indexing the image, I deduced that the returning players wasn't working. OOPS Thanks for the help though guys, sorry about that :p |
FWIW, I've actually experienced a bug like the one you initially reported in the past:
Quote:
|
All times are GMT +2. The time now is 09:20 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.