[RESOLVED]How to 'fix' events position...

Started by Apidcloud, February 19, 2011, 07:33:49 pm

Previous topic - Next topic

Apidcloud

February 19, 2011, 07:33:49 pm Last Edit: February 22, 2011, 01:12:04 pm by Apidcloud
Hey guys :P
As u know, when u open a scene...all the events and that stay freeze...

I wanted to do that without calling a scene, is it possible?


Summarizing:
Instead of calling a scene for something, I would 'freeze' all the map and do whatever i want xD

Bye~
Instead of wanting to be somebody else, rather become somebody else



"I will treasure the knowledge like a squirrel treasures acorns."


Gibbo Glast 2D Engine - The sky is no longer a limit

ForeverZer0

Don't have the scene update, you can use a script call to catch processing in another loop, but remember that Graphics.update has to be called, or the game will crash after a few seconds. Do something like this in a script call:


loop {
Graphics.update
Input.update
break if Input.trigger(Input::B)
}


I just threw in the ending if the B button was pressed, but remember that you MUST have some condition of breaking the loop.
You can have it set to a number of seconds as well like this:

120.times { Graphics.update } # 3 seconds



Or, to simply freeze the graphics, you can use Graphics.freeze, and then Graphics.transition to restart them, though this will simply make it so that things don't appear to change. If they "move" while the graphics are froze, they will suddenly reappear in their new location when they are transitioned back, which looks funny.

You can get away with it if you are cleverly with fading the screen out first, etc, but all that is determined by what you are using it for.
I am done scripting for RMXP. I will likely not offer support for even my own scripts anymore, but feel free to ask on the forum, there are plenty of other talented scripters that can help you.

Apidcloud

Well, I've trying to use that but, as I need to change map and then come back again..i think it is a bit more difficult...
I understand the idea of the loop but when i change of map it screws it all up XD

About Graphics.freeze and Graphics.transition it's really funny XD
I've done a simple test with a event moving, but when he was moving, i freeze. All the stuff stops, then i graphics transition and he 'teleports' to where he should be XD (anyway, this doesn't work because of the same thing I answered to the loop)

thanks again, I really appreciate ur help  :haha:
Instead of wanting to be somebody else, rather become somebody else



"I will treasure the knowledge like a squirrel treasures acorns."


Gibbo Glast 2D Engine - The sky is no longer a limit