Reputation
1,125
Top tag
Next privilege 2,000 Rep.
Edit questions and answers
Badges
5 15
Impact
~30k people reached

  • 0 posts edited
  • 3 helpful flags
  • 95 votes cast
Jul
6
comment Getting a pixel of Sprite at the cursor position in Unity
Note that as @jhocking seems to propose it, you don't even need a collider to do what you're trying to achieve. Unity' Sprites have boundary informations. Using them with transform.position will let you know if the click is contained by a certain sprite. The a simple GetPixel() on the sprite will give you the information you try to get.
Mar
2
comment How does unity size graphics?
What Pixels Per Unit value have you chosen?
Feb
26
comment How to deal with events in a game with multiple players, in Unity?
You can also make a bunch of delegates (bad idea), one for every players and players only register to their own. Then, according to the sender you throw the right delegate. Once again, this is a bad idea.
Feb
26
revised How to deal with events in a game with multiple players, in Unity?
added 810 characters in body
Feb
25
comment How do I draw a line from a set of points in unity to use as terrain in a 2D game?
Oh, in case of collision detection, I'd say you should probably prefere to build your own mesh and apply a MeshCollider on it.
Feb
25
answered How to deal with events in a game with multiple players, in Unity?
Feb
25
answered How do I draw a line from a set of points in unity to use as terrain in a 2D game?
Feb
25
comment StartCoroutine inside TriggerOnEnter2D isn't working
Are you sure it's the return needed is about OnTriggerEnter2D? Because the documentation says nothing about that, just asking a void.
Feb
24
revised StartCoroutine inside TriggerOnEnter2D isn't working
added 196 characters in body
Feb
24
comment StartCoroutine inside TriggerOnEnter2D isn't working
Sure. As my answer doesn't seem to be clear enough I'll edit it.
Feb
23
answered How could you create an SSX style snow trail in unity3d?
Feb
20
answered Where to start developing a 2D puzzle game
Feb
20
answered StartCoroutine inside TriggerOnEnter2D isn't working
Feb
20
comment How can I handle ball interaction with lanes in a pinball game?
What about putting Physics computation on hold when the ball enters in a ramp, make it following a spline, and wake up physics computation when it's on the other side?
Jan
5
accepted How should I store a city map on disk?
Jan
5
comment How should I store a city map on disk?
So it seems I was on the right track thinking about JSON. My second option was to use SQLite + SpatiaLite to use GIS features. Thanks for your help and time.
Jan
5
comment How should I store a city map on disk?
I was thinking about using JSON / BSON to store the city on disk. However if my game contains a big city, such as Paris or San Francisco, the JSON file would surely be so huge that opening and reading it to make a simple request such as "what is the name of the street I'm on" would surely be too long. What do you think? (thanks for having edited my post).
Jan
5
asked How should I store a city map on disk?
Jan
5
comment Unity access method from separate script
Can you please show where you instantiate / initialize / use the controller you are trying to use? Also can you confirm controller inherits from MonoBehaviour? Thanks.
Dec
8
answered How can I resize my Blender models when importing to Unity?