how to calculate touch on a randomly spawned actor ?
Hey guys,
Basically I'm designing a game in which random blocks of two colors(black and white) are spawning (moving from top to bottom) at every 0.5 seconds of time period and only if the user touches a black color spawned actor he gets some score.
And if the user missed to touch any of the black color spawned actor the game gets over.
But for now I have the following Problem:
1. How to calculate whether the black color spawned actor is touched or not??
Best Answer
-
Hopscotch Posts: 2,782
Hi @NehaDhoundiyal , welcome to GameSalad and the forums.
Now, these forums are great and nearly every post gets help or advice, but you are asking how to get from one city to the next without knowing how to drive yet.
We can tell you how to solve this problem but it will just lead to 10 more questions from your side. then you will get frustrated and give up.
I suggest you start by experimenting, reading the Cookbook
https://help.gamesalad.com/hc/en-us/categories/200134158/and searching Youtube for "Gamesalad tutorial". There are hundreds of tutorials to give you a good foundation.
Oh, and a better heading is advised.
Answers
Answer to your question:
Give the "black box" actor a RULE stating "if TOUCH is (pressed)", then "DESTROY" actor.
Good luck!
please use a more descriptive subject next time, using just '??' makes it difficult for you to get an answer, and if people run into the same problem in the future they won't be able to search for a solution.
Send and Receive Data using your own Server Tutorial! | Vote for A Long Way Home on Steam Greenlight! | Ten Years Left
Thank you so much everybody for you time, answers and suggestions.
my problem is solved now
and yes will keep in mind to use more descriptive subject from the next time..
Hey guys,
Game Description: Designing a game in which random blocks of two colors(black and white) are spawning (moving from top to bottom) at every 0.5 seconds of time period and only if the user touches a black color spawned actor he gets some score.
And if the user missed to touch any of the black color spawned actor the game gets over.
in last discussion my previous problem was pretty much solved
but for now i again got stuck up in middle of 1 more problem.so heres the problem i'm facing with my game:
As seen in the below picture link, there are 2 black and 3 black spawned actors in a row..But I want only 1 black actor should be spawned in each row.s23.postimg.org/buoathjob/image.jpg
Hope the linked picture will help you people to understand my question accurately.
Please don't create duplicate threads for the same issue. You can find (and update) existing threads by clicking on the My Discussions link at the top-right of the forums page.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User