menu

arrow_back Why is the error for obj in zip:VragSoldat(objects): ^ SyntaxError: invalid syntax? Engine: Ursina Engine?

by
1 vote
def input(key):
if key == 'left mouse down':
for obj in zip:VragSoldat(objects):
obj.position = (uniform(-45,45),
1.5,uniform(33,45))
obj.visible = True
invoke(respawnVragSoldat(obj),delay=3)
dust = Entity(model = Circle(),
parent = camera.ui,
scale = 0.03,
color = color.orange,
position = (0.21,-0.21))
dust.animate_scale(0.001,
duration=.1,
curve = curve.linear)
dust.fade_out(duration=0.1)

4 Comments

rekoshets , python doesn't do that. In python it would be something like objects[VragSoldat]. I highly recommend starting with a python tutorial.
And what does the design do
zip:VragSoldat(objects)

?
Searching on search engines , calls certain items from the list, VragSoldat - item from the list, objects - the list itself
Searching on search engines , causes syntax error

1 Answer

by
2 votes
Because. zip:VragSoldat(objects) that's not how they write it in python.

2 Comments

What do you want to do by writing such an expression?
but how do you write in python in my case?