Announcement
Collapse
No announcement yet.
Best way to create a blank actionscript class
Collapse
X
-
ArghCrazy started a topic Best way to create a blank actionscript classBest way to create a blank actionscript class
i want to create a reusable class that holds variables and functions but will never have any scene components.
i tried using just a plain blueprint object class and using a variable in actors, but it only pulled errors when trying to access its functions.
more details - i was creating a pseudo 2d int array class that has functions built in for storing and retrieving data in a 1d int array.
so do i need to create it as an actor parent class? or a actor component parent class? before i always just stored the mathmatical functions for going from a flat number to a 2d number in a function library but then u have to store and pass the max width of the 2d array every time and i thought it would just be easier to create a reusable class to call when needed.Tags: None
Leave a comment: