View Single Post
  #11    
Old October 3rd, 2012, 05:34 AM
FL's Avatar
FL
Pokémon Island Creator
 
Join Date: Sep 2010
Gender: Male
Tournaments Joined: 0
Tournaments Won: 0
Quote:
Originally Posted by thedudemister View Post
Yes. So I guess its a lot of work then, could you maybe direct me to some kind of tutorial where I may be able to figure out how to do it? I tried searching for a tutorial on how to write scripts but have had no luck so far. I am looking for something like the websites that show you had to do CSS or html. All I have been able to figure out so far is basic editing like moving things and changing some text.

Thanks,
You probably need to create a variable to put the damage number and put a update method in 'def pbGraphicsUpdate', something like:
Code:
if @damagenumber!=0
  do animation
  @damagenumber=0 if animation ended
end
I made a guide that show how simple scenes works in essentials http://www.pokecommunity.com/showthread.php?t=286554. I can't link here to others forums, so I can't post links to RGSS tutorials. Try to find on google. Note that to you make this damage pop up effect you needs a certain experience with programming.

Quote:
Originally Posted by IceGod64 View Post
Um.... What?

Would'nt it be more efficient to just change
Code:
if @animatingHP
      if @currenthp<@endhp
        @currenthp+=1
      elsif @currenthp>@endhp
        @currenthp-=1
      end
      refresh
      @animatingHP=false if @currenthp==@endhp
    end
to

Code:
if @animatingHP
      @currenthp = @endhp
      @animatingHP=false
    end
For question 1: Yes! I only pasted a code that I made to my game a long time ago to HP bar speeds up.