10-06-2013, 08:03 AM
Guest
10-06-2013, 02:46 PM
You can see them in action at "Transition Gallery"->"Simple Transitions" section of RenPy "Tutorial" game (comes with RenPy SDK).
Documentation says:
vpunch
When invoked, this transition shakes the screen vertically for a quarter second.
hpunch
When invoked, this transition shakes the screen horizontally for a quarter second.
Documentation says:
vpunch
When invoked, this transition shakes the screen vertically for a quarter second.
hpunch
When invoked, this transition shakes the screen horizontally for a quarter second.
Guest
10-07-2013, 02:16 PM
Thanks. I recognize the effect from the description, so thankfully no need for me to fiddle with Ren'Py just for that.
Guest
10-12-2013, 12:10 PM
Actions like
does not center image. However, lots of the sprites in VNs are shown centered. Right now, to center sprite you need to know sprite's width. How about to support something like RenPy's anchors?
* x=0%, xanchor=0% - left side
* x=50%, xanchor=50% - center
* x=100%, xanchor=100% - right side
* x=50%, xanchor=200 - point at 200th pixel of sprite is centered
* x=200, xanchor=200 - left side =)
Code for true centered image would look like
.
Code:
<move asset="sprite" x="50%" />
* x=0%, xanchor=0% - left side
* x=50%, xanchor=50% - center
* x=100%, xanchor=100% - right side
* x=50%, xanchor=200 - point at 200th pixel of sprite is centered
* x=200, xanchor=200 - left side =)
Code for true centered image would look like
Code:
<move asset="img" x="50%" xanchor="50%" y="50%" yanchor="50%" />
Guest
10-12-2013, 01:15 PM
I think that's something that would be nice to have in the next version. I don't know if that's the best solution, but I'll think about it.
Guest
11-08-2013, 04:15 PM
Have you come up with ideas how to support it? I'm not good at web stuff, so not sure if it is easy to implement or not. However, showing sprites at left/right/center is something <i>must-have</i> for me.
Guest
11-16-2013, 11:29 AM
Alright, I'll implement anchors. Stay tuned and sorry for taking so long. 

Guest
11-16-2013, 01:53 PM
Well, that was pleasently fast to implement. Please test the anchors using http://webstoryengine.org/releases/curre...yEngine.js and tell me whether it's working the way you expected.
Please be aware that I named the attributes xAnchor and yAnchor, with a capital 'A'.
Please be aware that I named the attributes xAnchor and yAnchor, with a capital 'A'.
Guest
11-16-2013, 03:49 PM
Wow, this seems to be just what I needed! Thanks a lot!
Guest
01-05-2015, 04:57 AM
Can it possible add parallax-effect to background layer like this: http://stephband.info/jparallax/ ?