Code: Select all
image fairy par neutral:
"fairy_par_neutral.png"
anchor (239/569.0, 243/424.0)
Code: Select all
rotate -30.0
Code: Select all
image fairy par neutral:
"fairy_par_neutral.png"
anchor (239/569.0, 243/424.0)
Code: Select all
rotate -30.0
Code: Select all
transform enemy1_fall:
easeout 3.5 pos (1000, 900) rotate_pad True rotate -30
Code: Select all
transform enemy1_fall:
easeout 3.5 pos (1000, 900) rotate_pad False rotate -30
Code: Select all
transform enemy1_fall:
easeout 3.5 pos (1000, 900) rotate -30 rotate_pad True
Code: Select all
transform enemy1_fall:
easeout 3.5 pos (1000, 900) rotate -30 rotate_pad False
It should be possible, but it's more trouble than I'd like since the pos adjustment will be different for each sprite. I should be able to get something that looks good without it though, so that's fine.Levrex wrote:But, if you're interested, the test sprite was jumping in one of the many directions with each change - when i'd set "xanchor" together with "rotate" part. Maybe you would figure out how to make the "jump" non-visible by setting instant xpos before rotating the sprite or whatever.
Code: Select all
linear (current_xpos + 200)
You need xoffset(http://www.renpy.org/doc/html/style.htm ... properties)Graph wrote:I'm curious now though. Is there a way to adjust the value of pos relative to the current value? Like say you want to move something horizontally 200 pixels:Code: Select all
linear (current_xpos + 200)
Code: Select all
show something at somewhere:
rotate 0
linear 5 rotate 360 xaround 0.25 yaround 0.25
Code: Select all
image lowerleft anchored line:
"line.png"
anchor (0.01, 1.0) transform_anchor 1
Code: Select all
I'm sorry, but an uncaught exception occurred.
While running game code:
File "game/story/Chapter-2-6.rpy", line 93, in script
AttributeError: 'ATLTransform' object has no attribute 'child_size'
-- Full Traceback ------------------------------------------------------------
Full traceback:
File "C:\Users\Danny\Documents\Dan's Art\renpy-6.14.1-sdk\renpy\execution.py", line 288, in run
node.execute()
File "C:\Users\Danny\Documents\Dan's Art\renpy-6.14.1-sdk\renpy\ast.py", line 963, in execute
show_imspec(self.imspec, atl=getattr(self, "atl", None))
File "C:\Users\Danny\Documents\Dan's Art\renpy-6.14.1-sdk\renpy\ast.py", line 937, in show_imspec
atl=atl)
File "C:\Users\Danny\Documents\Dan's Art\renpy-6.14.1-sdk\renpy\exports.py", line 325, in show
sls.add(layer, img, key, zorder, behind, at_list=at_list, name=name, atl=atl, default_transform=renpy.config.default_transform, transient=transient)
File "C:\Users\Danny\Documents\Dan's Art\renpy-6.14.1-sdk\renpy\display\core.py", line 725, in add
thing._show()
File "C:\Users\Danny\Documents\Dan's Art\renpy-6.14.1-sdk\renpy\display\motion.py", line 846, in _show
super(ATLTransform, self)._show()
File "C:\Users\Danny\Documents\Dan's Art\renpy-6.14.1-sdk\renpy\display\motion.py", line 833, in _show
self.update_state()
File "C:\Users\Danny\Documents\Dan's Art\renpy-6.14.1-sdk\renpy\display\motion.py", line 710, in update_state
pos = child.get_placement()
File "C:\Users\Danny\Documents\Dan's Art\renpy-6.14.1-sdk\renpy\display\image.py", line 171, in get_placement
return self.target.get_placement()
File "C:\Users\Danny\Documents\Dan's Art\renpy-6.14.1-sdk\renpy\display\motion.py", line 775, in get_placement
self.update_state()
File "C:\Users\Danny\Documents\Dan's Art\renpy-6.14.1-sdk\renpy\display\motion.py", line 710, in update_state
pos = child.get_placement()
File "C:\Users\Danny\Documents\Dan's Art\renpy-6.14.1-sdk\renpy\display\image.py", line 171, in get_placement
return self.target.get_placement()
File "C:\Users\Danny\Documents\Dan's Art\renpy-6.14.1-sdk\renpy\display\motion.py", line 793, in get_placement
cw, ch = self.child_size
AttributeError: 'ATLTransform' object has no attribute 'child_size'
Windows-7-6.1.7601-SP1
Ren'Py 6.15.5.354
Touhou Mecha 1.5
Code: Select all
image antiair fire long:
block:
"lowerleft anchored line"
pause 0.1
"lowerleft anchored line2"
pause 0.1
repeat 20
Code: Select all
show antiair fire long as aa1:
pos(0.0, 1.0)
Code: Select all
$transform_anchor = True
Users browsing this forum: Google [Bot]