Hello,
i would like to know if its able to create with script something similiar like a common event of type parallel process starting by a switch condition?
For example that what i like to have:
Every 2 Frames calling a function which does something like checking for user input and displaying images.
Is there a way to accomplish that?
It is possible, but you'd have to alias some methods and write some additional code. If you don't know what that means, you should definitely look it up before you try to make this. You would probably want to have it in either game_map or scene_map.
Thank you. I got it working now but now im having a problem with displaying a image.
Right now i have it like this:
def show_picture(number, file, x, y) zoom_x = 100.0 zoom_y = 100.0 opacity = 255.0 blend_type = 0 origin = 0 $game_map.screen.pictures[number].show(file, origin, x, y, zoom_x, zoom_y, opacity, blend_type) endshow_picture(10,"neu2", 120,120)But it doesnt work. What am i missing?
And someone know how to call the "wait"-command with ruby?
eh??? Where are you calling that show_picture??? it looks floating to me right now
Its inside the Scene_Map:
class Scene_Map def update super if $game_switches[192] show_picture(10,"neu2", 120,120) end end endIt seems the scene is not working properly after i use this code. The Scene stops after 1 second.
Im lost can anyone help me?
Thank you!!!
Now its working, and even the picture is being displayed.
Im now trying to use wait from the Game_Interpreter class
@interpreter = Game_Interpreter.newFiber.new { @interpreter.wait(40)}It throws no errors but it also doenst work.
Ive read i had to use make a counter inside the update function but i would prefer using the already existing
functions from the interpreter class.
What am i missing?
try doing it outside of Fiber.new?
else yeah, use a counter or something
Without the fiber this error appears:
Script 'Game_Interpreter' line 240: FiberError occurred.
can't yield from root fiber
so theres no way to call functions from the interpreter class?
why does it have a space btw?
What do you mean with space?
earlier it showed @interpreter . wait
maybe my browser was kinda having error earlier... XD