Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 A good way to make an interrupt scene
#1
Hello im here to make a tip of an interrupt scene

What's an interrupt scene
Its an special scene than can be shown "inside" another scene (good to separate some thigs..., sometimes)

How can i make one?
It's not as hard as you can think, let me show how to make it.

First you need to add some variables in the scene you want to "insert" de scene.

example

Code:
class Your_Scene
def initialize
@interrupt_scene = nil
[more code]
end
end

Now the update part..
Code:
class Your_Scene
def update
if @interrupt_scene != nil
if @interrupt_scene.disposed?
@interrupt_scene = nil
else
@interrupt_scene.update
return
end
end
[more code]
end
end
And the last part: how to make the scene

Code:
class Your_new_scene
def initialize
@disposed = false
[your code]
end

def update
[your code]
end

def dispose
[your code]
end

def disposed?
return @disposed
end


end

And now the good part.
To call the scene:

@interrupt_scene = Your_scene.new
and to quit it. put in the scene:
@disposed = true

EXAMPLES FOR RPG MAKERS

[VX VERSION]
Content Hidden

[XP VERSION]

Content Hidden

to call the scene (on Scene_map in this example)

Put in an event as "insert script"

Code:
scene = Scene_Interrupt_Skill.new(0)
$scene.call_interrupt_scene(scene)


And that's all. see ya!
Reply }


Messages In This Thread
A good way to make an interrupt scene - by Ramiro - 11-20-2009, 02:42 PM
A good way to make an interrupt scene - by Ramiro - 11-21-2009, 06:25 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
   It's Good To Be Evil, Part 2: The Anti-Hero Kaos Tenshi 2 5,758 06-07-2010, 04:37 AM
Last Post: Kristovski
   Getting Good Character Names Angroth 0 3,651 01-20-2009, 07:10 AM
Last Post: Angroth
   It's Good To Be Evil Kaos Tenshi 0 3,185 01-20-2009, 06:41 AM
Last Post: Kaos Tenshi
   How to make interesting NPC's without scripting Third333Strike 0 3,541 12-06-2008, 04:59 PM
Last Post: Third333Strike



Users browsing this thread: