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.


Messages - GameDragon

Pages: [1]
1
Support / Re: Rotate slowly to target?
« on: November 09, 2013, 07:27:05 pm »
That makes so much more sense. Thank you very much.

2
Support / Re: Rotate slowly to target?
« on: November 09, 2013, 05:22:26 pm »
I've tried:
Code: [Select]
Vector3 direction = player.transform.position - transform.position;
direction = new Vector3(0, 0, Mathf.Atan2(direction.y, direction.x) * Mathf.Rad2Deg);
transform.eulerAngles = Vector3.Lerp(transform.eulerAngles, direction, speed * Time.deltaTime);

But all that does it make it spin out uncontrollably.

3
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?

4
Releases / Re: 2D Toolkit 2.1 beta 3
« on: July 22, 2013, 07:27:14 am »
I can't seem to enable Viewport Clipping no matter what I do. Also the tk2dcamera resets things like Depth and Inherit settings if I try to change the clear flags.

5
Support / Re: Saving/Loading Tile Map for dynamic levels.
« on: June 01, 2013, 10:36:51 am »
Great. Thank you for the clarification. :D

6
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.

7
Releases / Re: 2D Toolkit Integrity Checker
« on: May 15, 2013, 05:13:53 pm »
Integrity check success!

Glad to see 2.0 is almost here. ;D

Pages: [1]