1 decade ago by stahlmanDesign
quidmonkey wrote:
I don't understand how to make this work.
I can't even get past syntax errors.
Should this be its own plugin or inside NotificationManager ? You've made it too generic for me to understand when you put "rest of note stuff" and "note stuff".
You can easily add the entity functionality to the plugin. I'd extend the Notification class by adding something like this to the plugin: WordBalloon = Notification.extend({ entity: null init: function( entity, rest of note stuff ) { this.parent( note stuff ); this.entity = entity; } update: function(){ this.vel.x = this.entity.vel.x; this.vel.y = this.entity.vel.y; this.parent(); } }); You could then add a spawnWordBalloon() to NotificationManager to allow you to spawn these new notes.
I don't understand how to make this work.
I can't even get past syntax errors.
Should this be its own plugin or inside NotificationManager ? You've made it too generic for me to understand when you put "rest of note stuff" and "note stuff".