Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

 
Closed TopicStart new topic
> Fade/Appear for events, super simple script for something useful...
Jens of Zanicuud
post Jan 16 2012, 01:25 PM
Post #1


Dark Jentleman
Group Icon

Group: Local Mod
Posts: 904
Type: Scripter
RM Skill: Skilled
Rev Points: 120




Hello again,
this time a little update, a simple script to smooth the appearance and fading of events:

CODE
#Jens of Zanicuud appear/fade script

class Game_Character
  def appear(frames)
    @opacity += 255/frames
    @opacity = [@opacity,255].min
  end
  
  def fade(frames)
    @opacity -= 255/frames
    @opacity = [@opacity,0].max
  end
end


HOW TO USE:
Set a Move Event and put a call script into, and write appear(number of frames) or fade(number of frames), then check the Repeat box, close the move event and put a Wait (same number of frames) after the move event.

Attached File  scr_move.PNG ( 7.33K ) Number of downloads: 21


The result will be the appearance/fading of the event/player in the desired number of frames and smoother like never before smile.gif
No credit needed this time, this was a piece of cake...

Jens


__________________________
"Thorns are the rose's sweetest essence..."
-Jens of Zanicuud


Games I'm working on:
>

official website: TryAdIne eFfeCt

>

Games I worked on (mainly as a scripter):
>
(Warning: it's a 3rr3's project and it's in Italian!)


Awards

Go to the top of the page
 
+Quote Post
   

Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 20th May 2013 - 09:02 PM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker