Third question and counting. Is it possible for RenPy to run ASCII art in the program, (probably just through a say statement and build it up each line)
and would it be possible to run a batch file inside a RenPy game? Let's say we wanted the matrix screen with the scrolling numbers/letters to play on a RenPy screen...not sure if it's compatible or possible.
If not, how would I go about it? (Maybe add in an animation but that's p difficult)
Big thanks to whom answers this question! Ciao
ASCII art and batch files (.bat)
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.
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.
-
- Newbie
- Posts: 11
- Joined: Sat Feb 25, 2017 2:57 pm
- Projects: Deus Ex: Love Augmented
- Tumblr: askfrankpritchard
- Contact:
Re: ASCII art and batch files (.bat)
You can use sprite-fonts, which are fixed-width fonts. (That is typical of "system" or "dos" or "fixedsys" lettering.)
It is possible to do what you want, but not an actual "bat" file. I would suggest some kind of line-based variable randomizer code. Use an array/list with 80+ indexes... pop one off the top, push a new one at the end (the new set of random letters/numbers/symbols), then load that as the new text in an animated sequence. (Text button would be great for that... a big one!)
You could do a similar animation with images. Selecting a random image that is a vertical-set of seemingly random letters/numbers/symbols. Then displaying that with an initial random offset per column. But, stepping up in a linear value until it is off-screen and there is room for a new image to be loaded underneath it. Each column going at a different speed, for added effect. (Not the easy way to do it.)
Just remember that RenPy is not a speed-demon for refreshing the screen. This is not a FPS game-engine. I am not sure how demanding that would be in full-screen at 1080p resolution.
Quick Way: Use OBS (Open Broadcaster Software) and record a video of a running BAT file... Load that video into RenPy, play it on a loop. Or you can use some other particle-generator... or program to make the animation. There is a online tool that displays matrix-like screens.
https://codepen.io/P3R0/pen/MwgoKv
http://thecodeplayer.com/walkthrough/ma ... javascript
http://www.arungudelli.com/html5/matrix ... avascript/
It is possible to do what you want, but not an actual "bat" file. I would suggest some kind of line-based variable randomizer code. Use an array/list with 80+ indexes... pop one off the top, push a new one at the end (the new set of random letters/numbers/symbols), then load that as the new text in an animated sequence. (Text button would be great for that... a big one!)
You could do a similar animation with images. Selecting a random image that is a vertical-set of seemingly random letters/numbers/symbols. Then displaying that with an initial random offset per column. But, stepping up in a linear value until it is off-screen and there is room for a new image to be loaded underneath it. Each column going at a different speed, for added effect. (Not the easy way to do it.)
Just remember that RenPy is not a speed-demon for refreshing the screen. This is not a FPS game-engine. I am not sure how demanding that would be in full-screen at 1080p resolution.
Quick Way: Use OBS (Open Broadcaster Software) and record a video of a running BAT file... Load that video into RenPy, play it on a loop. Or you can use some other particle-generator... or program to make the animation. There is a online tool that displays matrix-like screens.
https://codepen.io/P3R0/pen/MwgoKv
http://thecodeplayer.com/walkthrough/ma ... javascript
http://www.arungudelli.com/html5/matrix ... avascript/
Who is online
Users browsing this forum: Bing [Bot], Google [Bot]