YesNoOk
avatar

Need to display an image pop up during battle (Read 5459 times)

Started by ModalCobalt, July 23, 2024, 04:53:25 pm
Share this topic:
Need to display an image pop up during battle
#1  July 23, 2024, 04:53:25 pm
  • avatar
  • *
    • Italy
Hi, I need to make the game display some images at a certain point during a battle in storymode,the images have to be displayed above the fighters (like a pop-up).The point is I do not know how to do this in Ikemen and I don't even know if that is possible. Is there a way using Lua,OpenGl or else to achieve that?Thank you very much in advance!
Re: Need to display an image pop up during battle
#2  July 23, 2024, 08:59:10 pm
  • ****
  • Formerly DeathScythe
    • Brazil
    • lyricasky.neocities.org
So you want images to display over the fighters, during the fight? If so, you can do that with helpers and/or explods. If not, we need more details on what exactly you want.
Re: Need to display an image pop up during battle
#3  July 24, 2024, 05:45:55 pm
  • avatar
  • *
    • Italy
So you want images to display over the fighters, during the fight? If so, you can do that with helpers and/or explods. If not, we need more details on what exactly you want.

Thank you very much for the response!Yes I want the images to display over P2 during the fight,but they should not remain for long, they should pop up and then disappear.I know it is possible to put sprites in the foreground in the settings of the stage (at least in Mugen) ,but how do I make one image appear after a certain number of ticks and another appear after it?I mean, not like an animation because between an image and the other time should pass with nothing in the foreground.

Re: Need to display an image pop up during battle
#4  July 24, 2024, 06:42:32 pm
  • ****
  • Formerly DeathScythe
    • Brazil
    • lyricasky.neocities.org
Ah, so you mean in the stage, not in the character?
You can create an animation and use a blank sprite for a certain amount of ticks:

[Being Action 200]
-1,0, 0,0, 300   ; this is a blank sprite, it stays blank for 300 ticks, which is 5 seconds, you can change the time as you want.
10,0, 0,0, 8      ;replace 10,0 with the group and index of your sprite, and 8 is the amount of ticks it will display, change it as you want.

The animation will repeat, each 5 seconds your sprite will appear. If you have more than one sprite you can do as many as you want:

[Begin Action 200]
-1,0, 0,0, 300
10,0, 0,0, 8
-1,0, 0,0, 300
10,1, 0,0, 8
-1,0, 0,0, 300
10,2, 0,0, 8

And so on.
This works both for the character or the stage. Tell me if this is what you're looking for. :)
Re: Need to display an image pop up during battle
#5  July 25, 2024, 08:42:53 am
  • avatar
  • *
    • Italy
Ah, so you mean in the stage, not in the character?
You can create an animation and use a blank sprite for a certain amount of ticks:

[Being Action 200]
-1,0, 0,0, 300   ; this is a blank sprite, it stays blank for 300 ticks, which is 5 seconds, you can change the time as you want.
10,0, 0,0, 8      ;replace 10,0 with the group and index of your sprite, and 8 is the amount of ticks it will display, change it as you want.

The animation will repeat, each 5 seconds your sprite will appear. If you have more than one sprite you can do as many as you want:

[Begin Action 200]
-1,0, 0,0, 300
10,0, 0,0, 8
-1,0, 0,0, 300
10,1, 0,0, 8
-1,0, 0,0, 300
10,2, 0,0, 8

And so on.
This works both for the character or the stage. Tell me if this is what you're looking for. :)

Thank you very,very much that was what I intended to do,and it works!I wanted the animation to stop looping at a certain time, so I put 18000 ticks for the time the invisible sprite remains on stage, but I do not know if that is the best way to do it
Re: Need to display an image pop up during battle
#6  July 25, 2024, 11:24:16 am
  • *****
  • Resident Tosspot
  • Pftheh
    • UK
    • plasmoidthunder.neocities.org
You can set the time to -1 if you want it to remain indefinitely.

Oh, I want a diagram. I fucking love diagrams.
Re: Need to display an image pop up during battle
#7  July 26, 2024, 02:12:41 pm
  • avatar
  • *
    • Italy