I have a sprite with a Bullet behavior. I want to change its speed in python. What is the syntax (if any) to set the variables of a behavior?
Develop games in your browser. Powerful, performant & highly capable.
If the sprite's name is 'Sprite' and the bullet behavior's name is 'Bullet' then you access the speed property with
SpriteBullet.Speed = 200[/code:plva6ong] This is a good thread with some hints to PyShell: [url]http://www.scirra.com/forum/viewtopic.php?f=3&t=7231&p=56896[/url]
Thanks for your response. I will add this information to the wiki.