Aug 31, 2011 at 9:44 PM
Edited Sep 1, 2011 at 7:31 AM
I set my 2nd map's custom property to:
Value: 0, 18
(like the tutorial showed for Maps -> Properties -> Custom properties)
I was wondering on how to access the SpawnPoint object in code. I tried Global.player[i].X = map.Properties.Values.
but nothing came after that looked familiar.
I tried looking for a specific tutorial on how to access the custom properties from within the C# code, but nothing of interest came up.
I might have figured it out. Does it have to do with:
map.Properties.TryGetValue("SpawnPoint", new xTile.ObjectModel.PropertyValue( ??? ));
How do I accept a value of: 0, 16
I figured it out!
map.Properties.TryGetValue("SpawnPoint", out valueSpawnPoint);
How do I convert the string value of: 0, 16 into, let's say, a Vector2(0, 16)?