- Joined
- Apr 10, 2013
- Messages
- 45
- Reaction score
- 0
- First Language
- English
- Primarily Uses
I'm currently trying to adjust something where it appears in the middle of screen. It has 4 objects that are 24 pixels each representing + the number of enemies on the screen which are 24 pixels each
So my location of x was:
x= 272 - [12 * $data_enemies]
with $data_enemies being the variable. Since the number of enemies change each round.
Instead we have been getting a nil Error
Then when I use an unless nil argument
it will error out with a uninitialized constant error.
is there a way to put a location based on the number of enemies on the screen?
So my location of x was:
x= 272 - [12 * $data_enemies]
with $data_enemies being the variable. Since the number of enemies change each round.
Instead we have been getting a nil Error
Then when I use an unless nil argument
it will error out with a uninitialized constant error.
is there a way to put a location based on the number of enemies on the screen?

