how to calculate touch on a randomly spawned actor ?

NehaDhoundiyalNehaDhoundiyal Member Posts: 6
edited May 2014 in Miscellaneous

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

Answers

  • JodyMitomaJodyMitoma Member Posts: 307

    Answer to your question:

    Give the "black box" actor a RULE stating "if TOUCH is (pressed)", then "DESTROY" actor.

    Good luck!

  • jonmulcahyjonmulcahy Member, Sous Chef Posts: 10,408

    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.

  • NehaDhoundiyalNehaDhoundiyal Member Posts: 6

    Thank you so much everybody for you time, answers and suggestions. :)
    my problem is solved now o:)
    and yes will keep in mind to use more descriptive subject from the next time.. :)

  • NehaDhoundiyalNehaDhoundiyal Member Posts: 6
    edited May 2014

    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.

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949

    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

Sign In or Register to comment.