OmegaDev
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Need some help changing the priority type to below characters...

Go down

Need some help changing the priority type to below characters... Empty Need some help changing the priority type to below characters...

Post by Xzygon Sun Jul 25, 2010 7:35 pm

What I'm trying to do is change the priority type of this sprite to below characters.
I've done this once before, but I had to delete the old one for a few reasons (I forgot that I had somehow changed it to below characters.)
Now I can't seem to do it anymore, so can someone help me with this?
I'm sure it's super easy, but right now, I can't seem to do it.

It's a class in Sprite Base.
Here's the script part thing I believe it should be in...

Code:
class Sprite_Hole < Sprite_Base
  def initialize(viewport, character = nil)
    super(viewport)
    @character = character
    create_bitmap
    update
  end
 
  def create_bitmap
    self.bitmap = Cache.picture(@character.character_name)
       
  end
 
  def update
    super
    self.visible = (not @character.transparent)
    self.z = @character.screen_z - 5
    self.opacity = @character.opacity
    self.blend_type = @character.blend_type
    self.bush_depth = @character.bush_depth
    self.x = @character.screen_x - 16
    self.y = @character.screen_y - 26
  end
end
Xzygon
Xzygon
Apprentice
Apprentice

Posts : 135
Gald : 407

http://dualityvx.com

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum