Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

 
Reply to this topicStart new topic
> Teleporting and Screen fades, Need some help here
UmbrotheUmbreon
post Feb 24 2013, 05:14 PM
Post #1


Level 7
Group Icon

Group: Revolutionary
Posts: 105
Type: Writer
RM Skill: Intermediate




Okay so what I'm going for is the classic "Zelda Pitfall" thing, and the only thing I'm struggling with is how to teleport the character back without the screen fading away then fading back. Any help here would be greatly appreciated


__________________________
"Everyone deserves a second chance. Make the most of it." -Umbro

"Power. I never understood why people sought out for it, killed for it. I have the ultimate power, the unstoppable force, and yet...I wish I had none of it." -Umbro

I'm a fun and kind Umbreon :3 Don't be afraid to talk to me :)

Custom Magic Cards

Pokemon

Go to the top of the page
 
+Quote Post
   
Philip
post Feb 28 2013, 01:11 PM
Post #2


Nura (The Jade Ring)
Group Icon

Group: Revolutionary
Posts: 327
Type: Developer
RM Skill: Masterful




This is easy, check the codebox below. What you need to do is copy and paste the following code somewhere below Scene Map and above Main. You will need to fill in 3 things. Everywhere $game_switches[] is you will need to put a switch number in between the brackets.
~Example $game_switches[27]~ so basically everytime switch 27 it TRUE there will be NO fade on transfer. The script auto shuts the switch off so you won't have to in your event. The lines you will need to fill in the switch numbers is line 6 line 16 and line 19. If you have any questions please ask.

CODE
class Scene_Map < Scene_Base
  
  alias phils_update update_transfer_player unless $@
  def update_transfer_player
    return unless $game_player.transfer?
    if $game_switches[]
      fade = (Graphics.brightness > 0)
      fadeout(30) if fade
    end
    @spriteset.dispose              # Dispose of sprite set
    $game_player.perform_transfer   # Execute player transfer
    $game_map.autoplay              # Automatically switch BGM and BGS
    $game_map.update
    Graphics.wait(15)
    @spriteset = Spriteset_Map.new  # Recreate sprite set
    if $game_switches[]
      fadein(30) if fade
    end
    $game_switches[] = false
    Input.update
    phils_update
  end
  
end


This post has been edited by Philip: Feb 28 2013, 01:13 PM


__________________________
"If your mind goes blank don't forget to turn off the sound." Unknown Author

Phil


Go to the top of the page
 
+Quote Post
   
UmbrotheUmbreon
post Feb 28 2013, 07:45 PM
Post #3


Level 7
Group Icon

Group: Revolutionary
Posts: 105
Type: Writer
RM Skill: Intermediate




Oh god.....it is a script thing. Well, so much for that .___.


__________________________
"Everyone deserves a second chance. Make the most of it." -Umbro

"Power. I never understood why people sought out for it, killed for it. I have the ultimate power, the unstoppable force, and yet...I wish I had none of it." -Umbro

I'm a fun and kind Umbreon :3 Don't be afraid to talk to me :)

Custom Magic Cards

Pokemon

Go to the top of the page
 
+Quote Post
   
Philip
post Feb 28 2013, 08:14 PM
Post #4


Nura (The Jade Ring)
Group Icon

Group: Revolutionary
Posts: 327
Type: Developer
RM Skill: Masterful




QUOTE (UmbrotheUmbreon @ Feb 28 2013, 09:45 PM) *
Oh god.....it is a script thing. Well, so much for that .___.

Ah!! Scripting!! Places fingers in shape of cross. NOOOooooooooooooo!!!!! wink.gif


__________________________
"If your mind goes blank don't forget to turn off the sound." Unknown Author

Phil


Go to the top of the page
 
+Quote Post
   
UmbrotheUmbreon
post Feb 28 2013, 08:29 PM
Post #5


Level 7
Group Icon

Group: Revolutionary
Posts: 105
Type: Writer
RM Skill: Intermediate




QUOTE (Philip @ Feb 28 2013, 11:14 PM) *
QUOTE (UmbrotheUmbreon @ Feb 28 2013, 09:45 PM) *
Oh god.....it is a script thing. Well, so much for that .___.

Ah!! Scripting!! Places fingers in shape of cross. NOOOooooooooooooo!!!!! wink.gif


laugh.gif I don't mess with the scripting for fear of messing my game up


__________________________
"Everyone deserves a second chance. Make the most of it." -Umbro

"Power. I never understood why people sought out for it, killed for it. I have the ultimate power, the unstoppable force, and yet...I wish I had none of it." -Umbro

I'm a fun and kind Umbreon :3 Don't be afraid to talk to me :)

Custom Magic Cards

Pokemon

Go to the top of the page
 
+Quote Post
   
Philip
post Feb 28 2013, 08:39 PM
Post #6


Nura (The Jade Ring)
Group Icon

Group: Revolutionary
Posts: 327
Type: Developer
RM Skill: Masterful




QUOTE (UmbrotheUmbreon @ Feb 28 2013, 10:29 PM) *
QUOTE (Philip @ Feb 28 2013, 11:14 PM) *
QUOTE (UmbrotheUmbreon @ Feb 28 2013, 09:45 PM) *
Oh god.....it is a script thing. Well, so much for that .___.

Ah!! Scripting!! Places fingers in shape of cross. NOOOooooooooooooo!!!!! wink.gif


laugh.gif I don't mess with the scripting for fear of messing my game up

Try it in a new project to make sure it works. Then you can import it to your game after you get the hang of how it works.


__________________________
"If your mind goes blank don't forget to turn off the sound." Unknown Author

Phil


Go to the top of the page
 
+Quote Post
   
UmbrotheUmbreon
post Feb 28 2013, 08:40 PM
Post #7


Level 7
Group Icon

Group: Revolutionary
Posts: 105
Type: Writer
RM Skill: Intermediate




QUOTE (Philip @ Feb 28 2013, 11:39 PM) *
QUOTE (UmbrotheUmbreon @ Feb 28 2013, 10:29 PM) *
QUOTE (Philip @ Feb 28 2013, 11:14 PM) *
QUOTE (UmbrotheUmbreon @ Feb 28 2013, 09:45 PM) *
Oh god.....it is a script thing. Well, so much for that .___.

Ah!! Scripting!! Places fingers in shape of cross. NOOOooooooooooooo!!!!! wink.gif


laugh.gif I don't mess with the scripting for fear of messing my game up

Try it in a new project to make sure it works. Then you can import it to your game after you get the hang of how it works.


Am I able to have multiple projects with the trial version?


__________________________
"Everyone deserves a second chance. Make the most of it." -Umbro

"Power. I never understood why people sought out for it, killed for it. I have the ultimate power, the unstoppable force, and yet...I wish I had none of it." -Umbro

I'm a fun and kind Umbreon :3 Don't be afraid to talk to me :)

Custom Magic Cards

Pokemon

Go to the top of the page
 
+Quote Post
   
Philip
post Feb 28 2013, 09:02 PM
Post #8


Nura (The Jade Ring)
Group Icon

Group: Revolutionary
Posts: 327
Type: Developer
RM Skill: Masterful




QUOTE (UmbrotheUmbreon @ Feb 28 2013, 10:40 PM) *
QUOTE (Philip @ Feb 28 2013, 11:39 PM) *
QUOTE (UmbrotheUmbreon @ Feb 28 2013, 10:29 PM) *
QUOTE (Philip @ Feb 28 2013, 11:14 PM) *
QUOTE (UmbrotheUmbreon @ Feb 28 2013, 09:45 PM) *
Oh god.....it is a script thing. Well, so much for that .___.

Ah!! Scripting!! Places fingers in shape of cross. NOOOooooooooooooo!!!!! wink.gif


laugh.gif I don't mess with the scripting for fear of messing my game up

Try it in a new project to make sure it works. Then you can import it to your game after you get the hang of how it works.


Am I able to have multiple projects with the trial version?

Probably not lol. The only way to get the screen not to fade is through a script though you can't stop fading only through events.
In the scripts tab go to the bottom of the scripts on the left side and right click on the script labeled ( Insert here ) and click on the option named instert. It will create a blank script box for you which you can name anything you want on the left bottom like "No Fade Script" or Zelda Fades or whatever and then copy and paste my script in there. You can then easily delete the code if you don't like it.


__________________________
"If your mind goes blank don't forget to turn off the sound." Unknown Author

Phil


Go to the top of the page
 
+Quote Post
   
UmbrotheUmbreon
post Feb 28 2013, 09:19 PM
Post #9


Level 7
Group Icon

Group: Revolutionary
Posts: 105
Type: Writer
RM Skill: Intermediate




Alright, I will try tomorrow X3 Thank you for the help and I'll tell you how it goes smile.gif


__________________________
"Everyone deserves a second chance. Make the most of it." -Umbro

"Power. I never understood why people sought out for it, killed for it. I have the ultimate power, the unstoppable force, and yet...I wish I had none of it." -Umbro

I'm a fun and kind Umbreon :3 Don't be afraid to talk to me :)

Custom Magic Cards

Pokemon

Go to the top of the page
 
+Quote Post
   

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 19th June 2013 - 06:46 AM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker