Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Some questions....

First of all thank you for reading my topic.
Now IJust want to know soemthings like:

1-How do I play and Animation from the database, from a script?
2-How can I create an event from a script?
3...I tried changing the opacity of an event with @enemy.opacity = 20 but it gives me a nil class, what do i need to do it right? -SOLVED-
Thanx, hope you can help me!
 
For the second one, try something like this:

Code:
event = RPG::Event.new
event.id = $game_map.events.size+1
event.name = "Person"
event.x = 10
event.pages = [RPG::Event::Page.new] # Creates 1 page, [RPG::Event::Page.new, RPG::Event::Page.new] would be two pages.
event.pages[0].graphic = "" # character filename goes here
$game_map.events << event

It may work. Keep in mind that you need to edit the event page to have event commands.
 
1 - player or event.animation_id = id
id = aniamtion id from the Database

2 - Use Event Spawner By sephirothspawn

3 - You have to edit a bit. go to Sprite_Character or w/e and add it this;

def z=(new_z)
self.z = new_z
end

should work now, not sure tho.
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top