Visions problem: Begone, I don't believe in you!
I want a sprite to disappear after a variable changes. I put it on Vision 1 in the editor and used this:
It won't disappear
What am I doing wrong?
&vision == 0;
It won't disappear

I've done that... I posted two of them by mistake.
It still won't disappear.
It still won't disappear.
The vision can only be modified in a base script(A script attached to a screen). Make sure the script you are changing the vision in, is not attached to a sprite.
You have to add a script to the screen as well. All your 'seen all the time' sprites are set on 0 all the others on your other vision(s) 1 2 whatever
# = what number your story is up to
Well something like that (((hugs Pilly oh great teacher)))
Edit: Robj you are a ninja!!
void main(void) { if(&story < #) { &vision = 1; } if(&story > #) { &vision = 0; } }
# = what number your story is up to
Well something like that (((hugs Pilly oh great teacher)))
Edit: Robj you are a ninja!!
Hehe I think I only used visions once or twice in all my D-Mods XD
Often when you just want a sprite to disappear I find it easier to remove it in it's main procedure.
Often when you just want a sprite to disappear I find it easier to remove it in it's main procedure.
I had a whole bonfire to put out so much easier with visions
lol

I actually included that in my tutorial. If you use load_screen(); and draw_screen();, you can change visions while on that screen.
For example, you could have a normal vision script attached to the screen you're on:
And you could attach this script to a sprite:
For example, you could have a normal vision script attached to the screen you're on:
void main(void) { if(&story == 0) { &vision = 0; } if(&story == 1) { &vision = 1; } }
And you could attach this script to a sprite:
void talk(void) { say_stop("Appear, magical Vision 1 sprite!",¤t_sprite); &story += 1; load_screen(your screen); draw_screen(your screen); }
Thanks, pilly and co.
Now gimme my visions video tutorial

Now gimme my visions video tutorial

I can send you the old one that MsDink got if you want, but it needs some improvements.
EDIT: Link to VidTut download
EDIT: Link to VidTut download
*Gives Pillbug a cookie as promised*
Awesome tutorial, just what I needed
Oh, and nice voice
Awesome tutorial, just what I needed

Oh, and nice voice

His voice isnt nice NICE!! its HAWT
pfft

Hawt, for girls.
Guys would look stupid if they say it's hawt
Guys would look stupid if they say it's hawt
