Lemma Soft Forums

Supporting creators of visual novels and story-based games since 2003.


Visit our new games list, blog aggregator, IRC, and wiki.
Activation problem? Email [email protected]
It is currently Thu Jun 20, 2013 4:30 am

All times are UTC - 5 hours [ DST ]


Forum rules


Ask questions about one topic per thread, and use a descriptive subject. "NotImplemented error in script.rpy" is a good subject, "Tom's problems" is not. Remember to include all of traceback.txt or error.txt when reporting a problem, as well as the relevant lines of script. Use the [code] tag to format scripts.



Post new topic Reply to topic  [ 11 posts ] 
Author Message
PostPosted: Thu Feb 09, 2012 9:44 am 
Newbie

Joined: Sun Oct 31, 2010 1:02 pm
Posts: 17
Problemtime!

I have got a picture, a background, which happens to be 800x1115px big.
I want Ren'py to start showing the upper half of the picture and slowly move towards the lower half of it and stop there, so that the player can see everything from the picture. I know, it has to do something with ATL, but I totally don't get it, how to do that kind of "automatic scrolling". Help required :lol:

Thanks in advance!


Last edited by Feteo on Thu Mar 01, 2012 8:23 am, edited 2 times in total.

Top
 Profile Send private message  
 
PostPosted: Thu Feb 09, 2012 10:47 am 
Ren'Py Creator
User avatar

Joined: Mon Feb 02, 2004 10:58 am
Posts: 10850
Location: Kings Park, NY
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Probably the easiest way to do this is with the ATL crop command. That crops out a portion of the image. I'm assuming your game is 800x600, so you can write:

Code:
transform pandown:
    crop (0, 0, 800, 600)
    linear 3 crop (0, 515, 800, 600)

# ...

show bg bigbeach at pandown


This takes 3 seconds to do the pan. 515 is 1115 - 600, the height of the screen.

Hope this helps.

_________________
Another Old-Fashioned Bishoujo Gamer
Supporting creators since 2004; Code > Drama
(When was the last time you backed up your game?)
"It is not the critic who counts; not the man who points out how the strong man stumbles, or where the doer of deeds could have done them better. The credit belongs to the man who is actually in the arena, whose face in marred by dust and sweat and blood; who strives valiantly; who errs, who comes short again and again, because there is no effort without error and shortcoming" - Theodore Roosevelt


Top
 Profile Send private message  
 
PostPosted: Thu Feb 09, 2012 10:51 am 
Newbie

Joined: Sun Oct 31, 2010 1:02 pm
Posts: 17
That definitely helps, I'm gonna test it later.

And since we're on that: Is there a way to change the 800x600 game screen? Where can I do that?


Top
 Profile Send private message  
 
PostPosted: Thu Feb 09, 2012 11:08 am 
Ren'Py Creator
User avatar

Joined: Mon Feb 02, 2004 10:58 am
Posts: 10850
Location: Kings Park, NY
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Take a look at the start of options.rpy.

Note that if you change the size, you'll need to change the crop as well.

_________________
Another Old-Fashioned Bishoujo Gamer
Supporting creators since 2004; Code > Drama
(When was the last time you backed up your game?)
"It is not the critic who counts; not the man who points out how the strong man stumbles, or where the doer of deeds could have done them better. The credit belongs to the man who is actually in the arena, whose face in marred by dust and sweat and blood; who strives valiantly; who errs, who comes short again and again, because there is no effort without error and shortcoming" - Theodore Roosevelt


Top
 Profile Send private message  
 
PostPosted: Thu Feb 09, 2012 11:29 am 
Newbie

Joined: Sun Oct 31, 2010 1:02 pm
Posts: 17
Awesome, everything works out very well! I'm grateful for the good support! Keep the good work up!


Top
 Profile Send private message  
 
PostPosted: Wed Feb 29, 2012 3:49 pm 
Newbie

Joined: Sun Oct 31, 2010 1:02 pm
Posts: 17
Double Post, but I got another question:
Is there any way to disable clicking (and therefore skipping) while the wait-function is working? I used a wait-function, so that the moving background can do it's stuff, but I want the reader to be forced to watch it, so that he cannot skip it. Is that somehow possible?


Top
 Profile Send private message  
 
PostPosted: Thu Mar 01, 2012 9:16 am 
Crawling Chaos
User avatar

Joined: Mon Feb 13, 2012 5:37 am
Posts: 1148
Location: Kimashi Tower, Japan
Completed: SMAR,AAA
Projects: DMC
renpy.pause(hard=True) is only way I know of. for example,
Code:
init:
    def say_wait(who, what, wait):       
        renpy.say(who, what, interact=False)
        renpy.pause(delay=wait, hard=True)
label start:
    $say_wait("Eileen", "hello", 2)

_________________


Top
 Profile Send private message  
 
PostPosted: Thu Mar 01, 2012 12:37 pm 
Newbie

Joined: Sun Oct 31, 2010 1:02 pm
Posts: 17
I have tried out some things, that were related to the "hard"-value you are proposing, but somehow it doesn't work.
I tried these ones:

Code:
renpy.pause(delay=5, hard=True)

and
Code:
pause(5, hard=True)


It isn't written down on the wiki either: http://www.renpy.org/wiki/renpy/doc/ref ... ions/Pause
Have I done something wrong?

Nevertheless, thanks for your help. :)


Top
 Profile Send private message  
 
PostPosted: Thu Mar 01, 2012 7:02 pm 
Crawling Chaos
User avatar

Joined: Mon Feb 13, 2012 5:37 am
Posts: 1148
Location: Kimashi Tower, Japan
Completed: SMAR,AAA
Projects: DMC
It's a python code. Did you put "$" before the function?
The reason not written on the Wiki maybe it's not recommended.

_________________


Top
 Profile Send private message  
 
PostPosted: Fri Mar 02, 2012 7:48 am 
Newbie

Joined: Sun Oct 31, 2010 1:02 pm
Posts: 17
Ohhh, now it works... Sorry, I'm still very inexperienced! It works out just like I wanted it to be, thank you.

Still, another question: How do I prevent the player from rollbacking?


Top
 Profile Send private message  
 
PostPosted: Fri Mar 02, 2012 8:42 am 
Regular
User avatar

Joined: Sat Jun 12, 2010 11:27 am
Posts: 71
Projects: Rogue Of Heart, Awakened With A Crimson Kiss
it's nice and easy to stop a player from rolling back past a certain point, you just need to add in this line of code wherever you want the point of no return to be

Code:
$ renpy.block_rollback()


I know you can totally disable rollback, if that's what you want, but I'm not sure how you go about doing it haha.

_________________
VNs In Progress:
» Awakened With a Crimson Kiss «
» Rogue of Heart «


Top
 Profile Send private message  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 11 posts ] 

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Protected by Anti-Spam ACP
Powered by phpBB® Forum Software © phpBB Group