Elaborate Battles

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
Banya
Regular
Posts: 108
Joined: Mon Mar 21, 2016 8:42 am
Completed: Deep Inside, KOI, ROAR, Dreamquartz, YOLO
Projects: Emerald Wasp
Deviantart: Banya-Laplace-Studio
itch: banya
Location: Italy
Contact:

Elaborate Battles

#1 Post by Banya »

I wondered if I could add to the battle system flashing images like in Fire Emblem Heros (like this, specifically: https://www.youtube.com/watch?v=f1ttLkhWJUE), or even a gif. I'm a beginner with python but I'm willing to learn! So... what approach should I use to gain this effect?

User avatar
Per K Grok
Miko-Class Veteran
Posts: 882
Joined: Fri May 18, 2018 1:02 am
Completed: the Ghost Pilot, Sea of Lost Ships, Bubbles and the Pterodactyls, Defenders of Adacan Part 1-3, the Phantom Flyer
itch: per-k-grok
Location: Sverige
Contact:

Re: Elaborate Battles

#2 Post by Per K Grok »

Banya wrote: Wed Sep 26, 2018 3:46 pm I wondered if I could add to the battle system flashing images like in Fire Emblem Heros (like this, specifically: https://www.youtube.com/watch?v=f1ttLkhWJUE), or even a gif. I'm a beginner with python but I'm willing to learn! So... what approach should I use to gain this effect?
To make an animation you can do like this
defining the animation

Code: Select all

image animation_attack:
    "frame1.png"
    0.2                    #delay in seconds until next frame is shown
    "frame2.png"
    0.2
    "frame3.png"
    0.2    
  ---------------  
  repeat            # if you want a looping animation, which you probably do not want in this case 
showing the animation

Code: Select all

show animation_attack:
    xpos   100
    ypos   440
You can not use animated GIF:s

Banya
Regular
Posts: 108
Joined: Mon Mar 21, 2016 8:42 am
Completed: Deep Inside, KOI, ROAR, Dreamquartz, YOLO
Projects: Emerald Wasp
Deviantart: Banya-Laplace-Studio
itch: banya
Location: Italy
Contact:

Re: Elaborate Battles

#3 Post by Banya »

Thank you! I'm trying now! >w<

Post Reply

Who is online

Users browsing this forum: Google [Bot]