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?
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]
Develop games in your browser. Powerful, performant & highly capable.
Thanks for your response. I will add this information to the wiki.