Jump to content

Creating a prefab class that can be used as extention


PeterC
 Share

Recommended Posts

Hi,

 

I was wondering if it's possible to create some kind of prefab class that isn't based on something.

Some information: I'm using Grunt together with YO, i have followed the tutorial from flappy.

 

I'm building some kind of zelda 2 game.

Because i'm using different states, i'll like to create prefabs that can be included as extention and not as based on.

The prefabs i've learn in the flappy tutorial is that the prefab is always based on a object (sprite,tile,group...).

 

This is what i'm trying to do: http://screencast.com/t/HU2HQlF7

I want to have a class that shares the game object and has his own update method, And ideas, examples, is it possible?

 

Thanks in advance!

 

Grtz,

Peter

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...