You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

README.md 2.6KB

10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. coa4u
  2. =====
  3. ## Cocos2d-like Actions for Unity3d
  4. Unity3d is a very good game engine. It's almost perfect for quick prototyping.
  5. After switching from Cocos2D to Unity3d, i'm still missing just one cocos's feature - actions.
  6. It's a great combination of simplicity and flexibility, and i haven't found the suitable replacement for it.
  7. Since actions are quite simple, i implemented them myself.
  8. ### How to use
  9. Just put the src folder into your assets folder.
  10. Then attach the Actor.cs script to the object you want.
  11. See the examples folder, there's a sample script there.
  12. You can also subclass the Actor and add all the actions you want to the Start() method.
  13. ### Included actions (ready and WIP)
  14. All actions are designed to word in 3D scene (i.e. using Vector3 for movement, rotation and scaling).
  15. You can use it in 2D with apropriate vectors, but i'm going to add support for 2D actions soon.
  16. Base actions
  17. - [x] Sequence
  18. - [x] Parallel
  19. - [x] Repeat and Loop *implemented in one action*
  20. - [ ] Reverse *not yet, but every reversable action has working reverse() method*
  21. Interval actions
  22. - [x] Delay and RandomDelay *implemented in one action*
  23. - [x] MoveTo
  24. - [x] MoveBy
  25. - [x] RotateTo
  26. - [x] RotateBy
  27. - [x] ScaleTo
  28. - [x] ScaleBy
  29. - [x] TintBy *if you want to manipulate alpha, your material must support transparency*
  30. - [x] TintTo *if you want to manipulate alpha, your material must support transparency*
  31. - [x] FadeOut *if you want to manipulate alpha, your material must support transparency*
  32. - [x] FadeIn *if you want to manipulate alpha, your material must support transparency*
  33. - [x] FadeTo *if you want to manipulate alpha, your material must support transparency*
  34. - [x] FadeBy *if you want to manipulate alpha, your material must support transparency*
  35. - [ ] JumpTo
  36. - [ ] JumpBy
  37. - [x] BezierAbs
  38. - [ ] BezierRel
  39. - [ ] Blink
  40. Instant actions
  41. - [x] Place *renamed to SetPlace*
  42. - [x] CallFunc *renamed to SendMessage*
  43. - [x] Hide
  44. - [x] Show
  45. - [x] ToggleVisibility
  46. ### Some additional actions
  47. Interval actions
  48. - [ ] SkewBy
  49. - [ ] SkewTo
  50. Instant actions
  51. - [x] SetRotation
  52. - [x] SetTint
  53. ### Future plans
  54. After completing these actions, i'm going to add some more to the list.
  55. ## License
  56. Just like Cocos2D, this code licensed under the [MIT License](http://en.wikipedia.org/wiki/MIT_License)
  57. ## Help and donations
  58. I'm not doing it to make profit, but if you want, [you can send me a couple of bucks via PayPal](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=Z64675TKXFRFU).
  59. Also, if you'll write some action based on mine, feel free to send it to me, if you want me to add it to the library. I'll put your name on this page.