I want to make a game that allows you to have one power that can be switched out for a different power every time you restart the game. How do I do this?
this post is vague, but have you tried the random function?ALl you need is:
Change attribute game.power to random(1,4) it should only run once depending on what actor you add it to.
@joshiwu said:
this post is vague, but have you tried the random function?ALl you need is:
Change attribute game.power to random(1,4) it should only run once depending on what actor you add it to.
Random ≠ 'choosable'
tatiangMember, Sous Chef, PRO, Senior Sous-ChefPosts: 11,949
Start by explaining what you mean by "choosing a power." Does that mean x-ray vision, ice breath, flight, super-speed, ...? Or are we talking about underwater snail races, which means that a good power might be transforming into a dolphin.
As you can see, without more details we're ahem powerless to help you.
@MrTanner said:
I want to make a game that allows you to have one power that can be switched out for a different power every time you restart the game. How do I do this?
Like joshiwu said, your question is very vague, not sure I can suggest anything worthwhile.
Comments
this post is vague, but have you tried the random function?ALl you need is:
Change attribute game.power to random(1,4) it should only run once depending on what actor you add it to.
Random ≠ 'choosable'
Start by explaining what you mean by "choosing a power." Does that mean x-ray vision, ice breath, flight, super-speed, ...? Or are we talking about underwater snail races, which means that a good power might be transforming into a dolphin.
As you can see, without more details we're ahem powerless to help you.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
Like joshiwu said, your question is very vague, not sure I can suggest anything worthwhile.