Make appear actor after touch is pressed another actor? Any idea will be pleasantly)) thanks for all!
Comments
SlickZeroHouston, TexasMember, Sous ChefPosts: 2,870
edited October 2012
Hi there. You sound like you need to get a little more understanding on how GameSalad works. Watch, or search through the CookBook videos on youtube. These videos will teach you all the things that GameSalad can do, and how to do it. If after watching these videos, and you get stuck somewhere, post a question again about what it is you are having an issue with, and someone will gladly help you along.
Hi there. You sound like you need to get a little more understanding on how GameSalad works. Watch, or search through the CookBook videos on youtube. These videos will teach you all the things that GameSalad can do, and how to do it. If after watching these videos, and you get stuck somewhere, post a question again about what it is you are having an issue with, and someone will gladly help you along.
Thanks a lot! I have already watched all video tutorials but I could' t find. I did not underst Text explaines in cookbook because my English is horrible. Can you write me if is it possible "yes u have to use ??? Behavior and I need to creat ??? Attribute" just with simple word. Thanks
Hi there. You sound like you need to get a little more understanding on how GameSalad works. Watch, or search through the CookBook videos on youtube. These videos will teach you all the things that GameSalad can do, and how to do it. If after watching these videos, and you get stuck somewhere, post a question again about what it is you are having an issue with, and someone will gladly help you along.
Rule: (actor receiv event - touch is pressed) or. ( attribute ???????) Behavior: change attribute?, constrain attribute? Do I need to create any attribute like Boolean, integer, index or real? Please help
gyroscopeI am here.Member, Sous Chef, PROPosts: 6,598
Hi, there's probably at least 4 ways to do what you want, depending on the type of game, or situation. Here's one way; try something like this:
In the actor's Rules already on screen, put:
When touch is pressed Spawn Actor2
And in your Actor2 Rules (in the Prototype, i.e the original version in the Library): Change attribute self.Position.x to ?? Change attribute self.Position.y to ??
tatiangMember, Sous Chef, PRO, Senior Sous-ChefPosts: 11,949
Actor 1: When Touch is Pressed --> Change Attribute game.timeToSpawn to true Actor 2: When attribute game.timeToSpawn is true --> Spawn Actor [Actor 3] or, set actor2's self.color.alpha to 0 and then use When attribute game.timeToSpawn is true --> change attribute self.color.alpha to 1.
Hi, there's probably at least 4 ways to do what you want, depending on the type of game, or situation. Here's one way; try something like this:
In the actor's Rules already on screen, put:
When touch is pressed Spawn Actor2
And in your Actor2 Rules (in the Prototype, i.e the original version in the Library): Change attribute self.Position.x to ?? Change attribute self.Position.y to ??
Ooooooo thank you so much)) yahooooo. I'll test now
Actor 1: When Touch is Pressed --> Change Attribute game.timeToSpawn to true Actor 2: When attribute game.timeToSpawn is true --> Spawn Actor [Actor 3] or, set actor2's self.color.alpha to 0 and then use When attribute game.timeToSpawn is true --> change attribute self.color.alpha to 1.
Thank you tatiang! Now I am trying to do that. We are friends forEVER)
Hi, there's probably at least 4 ways to do what you want, depending on the type of game, or situation. Here's one way; try something like this:
In the actor's Rules already on screen, put:
When touch is pressed Spawn Actor2
And in your Actor2 Rules (in the Prototype, i.e the original version in the Library): Change attribute self.Position.x to ?? Change attribute self.Position.y to ??
Ooooooo thank you so much)) yahooooo. I'll test now
Actor 1: When Touch is Pressed --> Change Attribute game.timeToSpawn to true Actor 2: When attribute game.timeToSpawn is true --> Spawn Actor [Actor 3] or, set actor2's self.color.alpha to 0 and then use When attribute game.timeToSpawn is true --> change attribute self.color.alpha to 1.
Actor1 rule: when touch is pressed - change attribute(behavior) game.timetoSpawn(Boolean attribute) to true (true I wrote my self, not automatically). Actor2 rule: attribute game.timetoSpawn is true (true automatically appeared) - change attribute self.Color.Alfa to 1. I putted Alfa color to 0 in actor2 options where is the size e.t.c. And dragged drop. But nothing happen((
Hi, there's probably at least 4 ways to do what you want, depending on the type of game, or situation. Here's one way; try something like this:
In the actor's Rules already on screen, put:
When touch is pressed Spawn Actor2
And in your Actor2 Rules (in the Prototype, i.e the original version in the Library): Change attribute self.Position.x to ?? Change attribute self.Position.y to ??
Ooooooo thank you so much)) yahooooo. I'll test now
Thank you for your amazing comment and advice! May I have another ways of appearing rules. I think spawn behavior mostly used when the actor started to shoot))) in my event I want to press to bag and appear the open bag with collected items)) (such as key, ashtray, glove, glass))
tatiangMember, Sous Chef, PRO, Senior Sous-ChefPosts: 11,949
I've given you a basic idea about how to do this, but I really can't keep giving you more and more alternative ways to do it. The Cookbook videos and demos (under "Create a New Project" when you open GameSalad) are two good places to learn more about GameSalad.
Comments
http://www.youtube.com/user/GameSaladCookbook/videos
http://www.gshelper.com
@alarm656
Hi, there's probably at least 4 ways to do what you want, depending on the type of game, or situation. Here's one way; try something like this:
In the actor's Rules already on screen, put:
When touch is pressed
Spawn Actor2
And in your Actor2 Rules (in the Prototype, i.e the original version in the Library):
Change attribute self.Position.x to ??
Change attribute self.Position.y to ??
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps
Actor 2: When attribute game.timeToSpawn is true --> Spawn Actor [Actor 3]
or, set actor2's self.color.alpha to 0 and then use When attribute game.timeToSpawn is true --> change attribute self.color.alpha to 1.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User