Pink Petal Games

PyTFall => PyTFall: General information => Topic started by: nemojason on June 01, 2019, 04:51:22 AM

Title: Information about creation of magic
Post by: nemojason on June 01, 2019, 04:51:22 AM
Hello, for create magic ,i need some information about :

       
        "menu_pos": 0,
        "effect": 10,
        "multiplier": 1.0,
        "range": 4,
     
        "attacker_effects": {
           
            "zoom": 1.5,
            "duration": 0.84,
            "cast": {
                "point": "bc",
                "yo": -75
            }
        },
        "main_effect": {
            "gfx": "ice_1",
            "sfx": "content/sfx/sound/be/ice3.mp3",
            "duration": 2.0,
            "aim": {
                "point": "bc",
                "anchor": [0.5, 1.0],
                "yo": 60
            },
            "start_at": 0,
            "zoom": 1.9
 
I want to add this line renpy to .json, how can i do? :
image rasdemaree = Movie (channel="movie_dp", play="content/db/gfx/be/aqnimation/rasdemaree.webm")
Title: Re: Information about creation of magic
Post by: Xela on June 03, 2019, 08:05:01 AM
Code: [Select]
"gfx": "ice_1", ==>
Code: [Select]
"gfx": "rasdemaree",
Should do the trick.
Title: Re: Information about creation of magic
Post by: nemojason on June 03, 2019, 09:12:02 AM
Code: [Select]
"gfx": "ice_1", ==>
Code: [Select]
"gfx": "rasdemaree",
Should do the trick.


My problem is i don't know where put this declaration : image rasdemaree = Movie (channel="movie_dp", play="content/db/gfx/be/aqnimation/rasdemaree.webm")
Must i create a different file .rpy with this line for declare this variable because when i create it in the .json i get an error?
Title: Re: Information about creation of magic
Post by: Xela on June 03, 2019, 09:29:46 AM
It needs to be in .rpy file, it doesn't matter where you put the file itself. Normally you'd make a folder of some kind, let's say:

'game/mods/nemojason/my_mod_resourses.rpy'

(name of the file or folder structure doesn't matter)
Title: Re: Information about creation of magic
Post by: nemojason on June 03, 2019, 11:41:08 AM
It needs to be in .rpy file, it doesn't matter where you put the file itself. Normally you'd make a folder of some kind, let's say:

'game/mods/nemojason/my_mod_resourses.rpy'

(name of the file or folder structure doesn't matter)


Ah good, so in this file ****.rpy i just add this line as declaration inside the file-> i don't need to write anything else?
Title: Re: Information about creation of magic
Post by: Xela on June 03, 2019, 01:43:44 PM
You'll need the movie sprite itself obviously but yes, it should do the trick.
Title: Re: Information about creation of magic
Post by: nemojason on June 03, 2019, 03:12:47 PM
You'll need the movie sprite itself obviously but yes, it should do the trick.


Good, i maked the movie sprite in webm but my pb was to insert it in the code lol