Page 1 of 1
Problem with Click to Continue animation.
Posted: Thu Aug 02, 2012 9:49 pm
by ShiningKnightX
So as the title says I'm having problems with my click to continue animation, I have the animation itself setup but the problem is with the next line of code I get (from the textbox tutorial that is).
Code: Select all
$ a = Character('Name', ctc="ctc_animation", ctc_position="fixed")
where exactly do I put this? I'm new to Ren'py and programming in general so please excuse all of my n00b questions

. Thanks!
Re: Problem with Click to Continue animation.
Posted: Thu Aug 02, 2012 10:14 pm
by Kuroneko_rg
You need to put that in your game script.
If you are really new with Ren'Py, then let me say it this way.
Open your script.
Look into it until you find where the character 'Eileen' is defined.
Add that line of code below 'Eileen'.
Code: Select all
$ e = Character('Eileen')
$ a = Character('Name', ctc="ctc_animation", ctc_position="fixed")
Hope I could help and don't worry, being noob is not a crime :3
Re: Problem with Click to Continue animation.
Posted: Thu Aug 02, 2012 10:24 pm
by ShiningKnightX
So just for clarification would this be correct?
Code: Select all
define k = Character('Kazuki', show_two_window=True, color="#ffffff")
$ a = Character('Kazuki', ctc="ctc_animation", ctc_position="fixed")
Re: Problem with Click to Continue animation.
Posted: Thu Aug 02, 2012 10:28 pm
by Kuroneko_rg
No, you need to put everything on the defined character.
Code: Select all
define k = Character('Kazuki', show_two_window=True, color="#ffffff", ctc="ctc_animation", ctc_position="fixed")
Re: Problem with Click to Continue animation.
Posted: Thu Aug 02, 2012 10:35 pm
by ShiningKnightX
Okay, so I have everything as you say and I get this error.
While running game code:
File "game/script.rpy", line 22, in script
TypeError: unsupported operand type(s) for +: 'int' and 'str'
Which is a line of test text that says:
Code: Select all
k "The quick brown fox jumps over the lazy dog."
Sorry for the constant need of aid, btw. =P
Re: Problem with Click to Continue animation.
Posted: Thu Aug 02, 2012 10:42 pm
by Kuroneko_rg
Could you post the line of code where you defined "ctc_animation"?
Re: Problem with Click to Continue animation.
Posted: Thu Aug 02, 2012 10:43 pm
by ShiningKnightX
Code: Select all
image ctc_animation = Animation("ctc1.png", "ctc2.png", "ctc3.png", "ctc4.png", "ctc5.png", "ctc6.png", "ctc7.png", "ctc8.png", "ctc9.png", "ctc10.png", "ctc11.png", xpos=1.0, ypos=1.0, xanchor=1.0, yanchor=1.0)
Re: Problem with Click to Continue animation.
Posted: Thu Aug 02, 2012 11:04 pm
by Kuroneko_rg
It has to be an ATL block.
Code: Select all
image ctc_animation:
"ctc1.png"
pause 0.1
"ctc2.png"
pause 0.1
"ctc3.png"
pause 0.1
"ctc4.png"
pause 0.1
"ctc5.png"
pause 0.1
"ctc6.png"
pause 0.1
"ctc7.png"
pause 0.1
"ctc8.png"
pause 0.1
"ctc9.png"
pause 0.1
"ctc10.png"
pause 0.1
"ctc11.png"
repeat
Tested with an animation I had and worked. Let me know if you keep having troubles.
Re: Problem with Click to Continue animation.
Posted: Thu Aug 02, 2012 11:07 pm
by ShiningKnightX
There we go! Works perfectly, thanks for all your help!
Crap, almost perfectly, how do I move it around when the code's like this?
Re: Problem with Click to Continue animation.
Posted: Thu Aug 02, 2012 11:15 pm
by Kuroneko_rg
Mmm... beats me. I'll try again right now.
Re: Problem with Click to Continue animation.
Posted: Thu Aug 02, 2012 11:48 pm
by Kuroneko_rg
Found it. Just add this:
Code: Select all
image ctc_animation:
xpos 400 #Just keep changing this until you find the right spot
ypos 400 #Just keep changing this until you find the right spot
"ctc1.png"
pause 0.1
"ctc2.png"
pause 0.1
"ctc3.png"
pause 0.1
"ctc4.png"
pause 0.1
"ctc5.png"
pause 0.1
"ctc6.png"
pause 0.1
"ctc7.png"
pause 0.1
"ctc8.png"
pause 0.1
"ctc9.png"
pause 0.1
"ctc10.png"
pause 0.1
"ctc11.png"
repeat
Re: Problem with Click to Continue animation.
Posted: Thu Aug 02, 2012 11:50 pm
by ShiningKnightX
Alright, now it's perfect! Thanks for all the help again!
Re: Problem with Click to Continue animation.
Posted: Thu Aug 02, 2012 11:56 pm
by Kuroneko_rg
It was tricky as I haven't messed up with ctc aside of the basic one, so I had to rush my way trough it.
I'm glad I could help you (I also learned a few things in the process) :3
Good luck with your project.