Temporary Sprite Removal

Started by whitespirits, March 22, 2014, 08:05:29 am

Previous topic - Next topic

whitespirits

Hi guys, so im looking to make a world map but i dont want my character to appear, is there something i can call that will remove sprite visibility for just that map?

StorocnekXx

Sorry, If I got this wrong, but here's my suggestion:

- Make a common event in the database
- Make it parallel process
- Make it active via switch, called whatever you like (Let's name the switch "worldmap")
- Whenever you enter the world map, turn on that switch
- Whenever leaving the world map, turn the switch off
- It contains the following condition: If switch worldmap is on...
- ... change graphic -> Player -> None
- ... if it is not on...
- ... change graphic -> Player -> Sprite of your Charakter

I hope this will do it. :)
I may have a lot of ideas to use, but I have no idea how to use them.

whitespirits

Thanks for the help, but im making an MMO and i would not know what character the player has chosen, so i need ma more script based approach.

Zexion

Uhh, you could just do
Set move route: Change opacity = 0
Then
Set move route: Change opacity = 255
When you're done

StorocnekXx

Quote from: Zexion on March 22, 2014, 12:25:37 pm
Uhh, you could just do
Set move route: Change opacity = 0
Then
Set move route: Change opacity = 255
When you're done

:facepalm: @myself

yes, use "my" method and replace "Graphic -> none" to exactly what Zexion said.
Should do the trick.
I may have a lot of ideas to use, but I have no idea how to use them.

Heretic86

There are multiple ways of doing this.

If you remove just the graphic, change to none, or set opacity to zero, the event itself is still technically "there".

If you change the Event Page, then the event wont exist if the conditions are not met.  It will prevent the player from interacting with that event at all and causing "ghost events".

Now, if what you are trying to hide is the Player so you can display a World Map via a Picture, it may be better to request a script to do this.  A script could allow an entirely new "Scene", such as a Menu and prevent strange results from the players character interactions.  A new "Scene" will also prevent other events from performing all their set behaviors which can potentially be a source of bugs.
Current Scripts:
Heretic's Moving Platforms

Current Demos:
Collection of Art and 100% Compatible Scripts

(Script Demos are all still available in the Collection link above.  I lost some individual demos due to a server crash.)