Hello Guest

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - GameDragon

Pages: [1]
1
Support / Rotate slowly to target?
« on: November 09, 2013, 02:48:54 am »
I've searched and used this code to rotate my object to a target:
Code: [Select]
Vector3 direction = targetPoint - transform.position;
transform.eulerAngles = new Vector3(0, 0, Mathf.Atan2(direction.y, direction.x) * Mathf.Rad2Deg);

But I'd like to add some rotation speed to this to make it rotate more slowly. How would I go about doing this?

2
Support / Saving/Loading Tile Map for dynamic levels.
« on: June 01, 2013, 08:26:11 am »
Right now I'm working on creating a Random Dungeon Generator using preset rooms and corridors. The rooms are drawn in a small Tile Map on one scene, iterated through, and saved to a file.
The larger Tile Map parses the files, then draws and builds accordingly.

So far this is working for me fine, but while it's still early, I would like to know if this is the best method to go about this, or is there something simpler or faster I'm missing? I'm thinking that it might get a bit performance heavy if I start adding too many layers.

Pages: [1]