- Endless loop -

Development notes of Construct 2's plugins

timescale of object

To get dt of instance, use
var dt = this.runtime.getDt(inst);

But only plugin which has "type" to "world" would have my_timescale property. So my_timescale need to be added manually for other case.
For example:
this.my_timescale = -1
No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
標籤: timescale
Newer Posts Older Posts Home
Subscribe to: Posts (Atom)

Search This Blog

Links

  • Plugin SDK
  • Source code

Total Pageviews

Labels

Instance (6) ACE (4) cr (2) Behavior instance (1) CocoonJS (1) Eval (1) SID (1) UID (1) angle (1) destroy (1) distance (1) engine (1) layer (1) object-type (1) timeline (1) timescale (1)

Hot spots

  • Reuse ACE
  • Get UID from instance, get instance from UID
  • Procedure of plugins and event sheet in each tick
  • Reuse system action
  • Get behavior instance
  • Get SID from object-type, get object-type from SID
  • Destroy children objects when parent object destroyed
  • Override common ACEs of object
  • Create instance

Blog Archive

  • ▼  2014 (15)
    • ►  2 (11)
    • ▼  3 (1)
      • timescale of object
    • ►  4 (1)
    • ►  5 (1)
    • ►  9 (1)
  • ►  2015 (1)
    • ►  3 (1)
  • ►  2016 (1)
    • ►  2 (1)
Simple theme. Powered by Blogger.