You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To be honest, using the .attr property(?) is sorta annoying to use. Why not have it a function? It only takes up to 4 integers, so I think using it as .attr(x, y, w, h) would be much easier to use. Example:
varplayer=Crafty.e('2D, Canvas, Color, Fourway, Collision').attr(200,200,10,10)// Other properties...
And then calling any additional properties as:
.props({currHealth: 100maxHealth: 100// Other custom properties...})
Would this work, or no?
The text was updated successfully, but these errors were encountered:
To be honest, using the
.attr
property(?) is sorta annoying to use. Why not have it a function? It only takes up to 4 integers, so I think using it as.attr(x, y, w, h)
would be much easier to use. Example:And then calling any additional properties as:
Would this work, or no?
The text was updated successfully, but these errors were encountered: