1
SCI Syntax Help / [Solved] SCI0 - multiple actors using same changeState
« on: July 02, 2025, 11:48:25 PM »
I am trying to trim some code (for heap purposes) and I have 2 actors who rely on the same base coding for their behaviors, but I have two separate changeStates that operate essentially the same (with some minor difference like x and y positions).
I have had one hell of a time trying to figure out how to make 2 (or more) actors use the same changeState (but at different times).
Is this possible?
My idea was to create a class of Script with a changeState method, to set the script to the actors, but whenever I call the actor's script, it crashes the game.
I'm trying to call it with the following: ((actor1 script?) changeState: 1)
SCI doesn't like that at all! makes the whole program crap its pants and die!
Any insight would be greatly appreciated.
I have had one hell of a time trying to figure out how to make 2 (or more) actors use the same changeState (but at different times).
Is this possible?
My idea was to create a class of Script with a changeState method, to set the script to the actors, but whenever I call the actor's script, it crashes the game.
I'm trying to call it with the following: ((actor1 script?) changeState: 1)
SCI doesn't like that at all! makes the whole program crap its pants and die!
Any insight would be greatly appreciated.