PICTURE PRIORITY (VX ACE)
Posts
Pages:
1
How I'd do something like this in RMXP (I'm not sure how close the scripts are):
In Game_Picture under scripts, in the initialize definition, do something like this at the end:
Then, any picture numbered 5 or below should show up under the sprites on the screen. It might not show up properly, however, based on tile priority - at the very least, they will show up below event sprites.
In Game_Picture under scripts, in the initialize definition, do something like this at the end:
if number <= 5
@z = 64 - number
else
@z = 100 + number
Then, any picture numbered 5 or below should show up under the sprites on the screen. It might not show up properly, however, based on tile priority - at the very least, they will show up below event sprites.
author=Travio
How I'd do something like this in RMXP (I'm not sure how close the scripts are):
In Game_Picture under scripts, in the initialize definition, do something like this at the end:
if number <= 5
@z = 64 - number
else
@z = 100 + number
Then, any picture numbered 5 or below should show up under the sprites on the screen. It might not show up properly, however, based on tile priority - at the very least, they will show up below event sprites.
Are you taking about def initiaize(number)?
If you are then its not working. On start up maker shows syntax error.
P.S.
I changed '<=5' to '=1'
It's under def initialize(number)
If you're changing it so only the first picture (1) can show up under it, then do...
if number == 1
Oh, you'll need to put "end" on the line after 100 + number - I forgot to close off the if, my IDE does that for me, so I often forget to do it when writing code outside it.
If you're changing it so only the first picture (1) can show up under it, then do...
if number == 1
Oh, you'll need to put "end" on the line after 100 + number - I forgot to close off the if, my IDE does that for me, so I often forget to do it when writing code outside it.
author=Travio
It's under def initialize(number)
If you're changing it so only the first picture (1) can show up under it, then do...
if number == 1
Oh, you'll need to put "end" on the line after 100 + number - I forgot to close off the if, my IDE does that for me, so I often forget to do it when writing code outside it.
The game starts now, but when I try to add an image numbered 1 it shows 'name error' for line 28. line 28 is 'init_basic'
Pages:
1














