Why circlewipe trasition can't work?

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
User avatar
bbs3223474
Regular
Posts: 33
Joined: Thu Apr 02, 2015 12:17 am
Contact:

Why circlewipe trasition can't work?

#1 Post by bbs3223474 »

In the script I wrote like this:
scene bg bg34a
with circlewipe
But when I test it, it turns out an error.
NameError: name 'circlewipe' is not defined
Am I doing it right? Or there are somewhere need to improve?

By the way, I noticed that circlewipe can only start from right side in common situation.
If I want it to start from the left and keep it playing for 2 seconds, how can I do?
Opensource project of a Ren'py transplanted game: https://github.com/bbs3223474/HANA16_Renpy

User avatar
trooper6
Lemma-Class Veteran
Posts: 3712
Joined: Sat Jul 09, 2011 10:33 pm
Projects: A Close Shave
Location: Medford, MA
Contact:

Re: Why circlewipe trasition can't work?

#2 Post by trooper6 »

I went over to the renpy documentation of transitions here:
http://www.renpy.org/doc/html/transitions.html

and I see that circlewipe is not one of the pre-defined transitions. This is why you keep getting the "not defined" error. Circlewipe isn't defined!
So if you want a circlewipe transition, you have to define one yourself. Or you can use one of the already defined transitions.
A Close Shave:
*Last Thing Done (Aug 17): Finished coding emotions and camera for 4/10 main labels.
*Currently Doing: Coding of emotions and camera for the labels--On 5/10
*First Next thing to do: Code in all CG and special animation stuff
*Next Next thing to do: Set up film animation
*Other Thing to Do: Do SFX and Score (maybe think about eye blinks?)
Check out My Clock Cookbook Recipe: http://lemmasoft.renai.us/forums/viewto ... 51&t=21978

User avatar
Donmai
Eileen-Class Veteran
Posts: 1958
Joined: Sun Jun 10, 2012 1:45 am
Completed: Toire No Hanako, Li'l Red [NaNoRenO 2013], The One in LOVE [NaNoRenO 2014], Running Blade [NaNoRenO 2016], The Other Question, To The Girl With Sunflowers
Projects: Slumberland
Location: Brazil
Contact:

Re: Why circlewipe trasition can't work?

#3 Post by Donmai »

Don't know what that transition does, but sounds like you can recreate it with an image dissolve transition:
http://www.renpy.org/doc/html/transitio ... geDissolve

See the transitions chapter of the Ren'Py tutorial game for examples. Yes, you can control the transition direction and duration time.

Edit: if you have the original image used on the transition (say 'circlewipe.png'), then it will be something like:

Code: Select all

init:
    $ circlewipe = ImageDissolve("circlewipe.png", 2.0, 8, reverse=True)
Image
No, sorry! You must be mistaking me for someone else.
TOIRE NO HANAKO (A Story About Fear)

User avatar
bbs3223474
Regular
Posts: 33
Joined: Thu Apr 02, 2015 12:17 am
Contact:

Re: Why circlewipe trasition can't work?

#4 Post by bbs3223474 »

trooper6 wrote:I went over to the renpy documentation of transitions here:
http://www.renpy.org/doc/html/transitions.html

and I see that circlewipe is not one of the pre-defined transitions. This is why you keep getting the "not defined" error. Circlewipe isn't defined!
So if you want a circlewipe transition, you have to define one yourself. Or you can use one of the already defined transitions.
Thank you, I found
$ circlewipe = ImageDissolve("id_circlewipe.png", 1.0, 8)
in one of the tutorial's script
Opensource project of a Ren'py transplanted game: https://github.com/bbs3223474/HANA16_Renpy

User avatar
trooper6
Lemma-Class Veteran
Posts: 3712
Joined: Sat Jul 09, 2011 10:33 pm
Projects: A Close Shave
Location: Medford, MA
Contact:

Re: Why circlewipe trasition can't work?

#5 Post by trooper6 »

After you pointed out that circlewipe was in the tutorial game, I checked out that file. Have you read it?
There are two things to note. The first is that the transition is defined there like so:

Code: Select all

init:
    $ circlewipe = ImageDissolve("id_circlewipe.png", 1.0, 8)
You should also have that in your file to define that transition. However, more importantly is this part of the tutorial game:

Code: Select all

    e "The most interesting transitions aren't in the standard library."

    e "These ones require an image the size of the screen, and so we couldn't include them as the size of the screen can change from game to game."

    e "You can click the button above to see how they are defined in the demo script."
So in order for the circlewipe transition to work, you need a circlewipe image in your game folder and it needs to be the same size as your game screen.
The tutorial game file does have a circleswipe image which you can use, but that image is 800x600...so your screen would have to be 800x600 as well. If your screen is a different size, then you would need to make your own version of that image.
A Close Shave:
*Last Thing Done (Aug 17): Finished coding emotions and camera for 4/10 main labels.
*Currently Doing: Coding of emotions and camera for the labels--On 5/10
*First Next thing to do: Code in all CG and special animation stuff
*Next Next thing to do: Set up film animation
*Other Thing to Do: Do SFX and Score (maybe think about eye blinks?)
Check out My Clock Cookbook Recipe: http://lemmasoft.renai.us/forums/viewto ... 51&t=21978

User avatar
bbs3223474
Regular
Posts: 33
Joined: Thu Apr 02, 2015 12:17 am
Contact:

Re: Why circlewipe trasition can't work?

#6 Post by bbs3223474 »

trooper6 wrote:After you pointed out that circlewipe was in the tutorial game, I checked out that file. Have you read it?
There are two things to note. The first is that the transition is defined there like so:

Code: Select all

init:
    $ circlewipe = ImageDissolve("id_circlewipe.png", 1.0, 8)
You should also have that in your file to define that transition. However, more importantly is this part of the tutorial game:

Code: Select all

    e "The most interesting transitions aren't in the standard library."

    e "These ones require an image the size of the screen, and so we couldn't include them as the size of the screen can change from game to game."

    e "You can click the button above to see how they are defined in the demo script."
So in order for the circlewipe transition to work, you need a circlewipe image in your game folder and it needs to be the same size as your game screen.
The tutorial game file does have a circleswipe image which you can use, but that image is 800x600...so your screen would have to be 800x600 as well. If your screen is a different size, then you would need to make your own version of that image.
Yes, fortunately my game also 800x600, and I solved this problem. I'm appreciate your patient.
Opensource project of a Ren'py transplanted game: https://github.com/bbs3223474/HANA16_Renpy

Post Reply

Who is online

Users browsing this forum: No registered users