How to spaw actor actors there where i tap..

JaxterJaxter Member, PRO Posts: 398
edited March 2012 in Working with GS (Mac)
How to spaw actor actors there where i tap..

I want to do game where Caracter is falling down by gravity, and with taping you must keep it in the air... i made gravity and in this actor made on touch pressed, move 90 ( to up ) for 1 sec. .. but it is not smooth animation.. i think to do it anotherway.. just main actor with atribute collide with "spawnactor".. but invisible "spawnactor" is spawning when i tap on screen, and destroys after 0.2 sec, bet i dont know how to make it spawn there when i my finger.. pleas help me..

Comments

  • POMPOM Member Posts: 2,599
    edited March 2012
    Make a "spawner actor"

    In it make a rule :
    When mouse button is down
    Spawn actor "invisible"
    Position Y - Mouse.position.X , Position Y - Mouse.position.Y
    Relative to scene .

    Photobucket Roy
  • CloudsClouds Member Posts: 1,599
    When mouse bottom is down

    image
  • POMPOM Member Posts: 2,599
    edited March 2012

    image
    Then spawn ;)
    image

    Photobucket Roy
  • JaxterJaxter Member, PRO Posts: 398
    Hmm actor is spawning, but randomly away from mouse :( i made: ----> Mouse.position.Y ^ Mouse.position.X in first horizontal field a cant enter X in Y place
  • JaxterJaxter Member, PRO Posts: 398
    roll i am making in BG actor not in spawn because span actor by itself isnt in scene before you tap
  • JaxterJaxter Member, PRO Posts: 398
    i want to do something like it is here:
  • LeonardDeveloperLeonardDeveloper Member Posts: 4,630
    edited March 2012
    ok...
    Ill fix that for you..

    image
    Then spawn ;)
    image

    Then spawn
    image
  • POMPOM Member Posts: 2,599
    Photobucket

    Photobucket Roy
  • LeonardDeveloperLeonardDeveloper Member Posts: 4,630
    edited March 2012
    Putting the messing and jokes aside
    Ive got the answer try combining my touch follower tutorial here... with rule "spawn actor"
    My template: http://thermo-apps.com/gs-tutorials/follow-my-fingertouch-follower-templatetutorial-in-gs/
  • JaxterJaxter Member, PRO Posts: 398
    Brother i did it .. it does not working.. those rules i put in BG actor.
  • LeonardDeveloperLeonardDeveloper Member Posts: 4,630
    @jaxter
    What? Please explain that more grammatically understandable ;)
  • POMPOM Member Posts: 2,599
    edited March 2012
    Brother i did it .. it does not working.. those rules i put in BG actor.
    Does your actors have a colliding rules? they need to interact!
    Also don't forget to put a rule in your invisible spawned actors to be destroyed after 0.2 sec (or more) .

    Photobucket Roy
  • JaxterJaxter Member, PRO Posts: 398
    my spawn actors are randomly away from my click.. i neet it under my cursor
  • LeonardDeveloperLeonardDeveloper Member Posts: 4,630
    @jaxter
    My tutorial is exactly for spawning them under your finger.. combine your rules with my rules in my template here (Just copy & Paste them)
    My template: http://thermo-apps.com/gs-tutorials/follow-my-fingertouch-follower-templatetutorial-in-gs/
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    Did you make your scene bigger? Cause then you neeed to add an offset for the camera.

    You can send me the project if youd like and ill take a look.

    papiomitis@yahoo.com
  • JaxterJaxter Member, PRO Posts: 398
    in your Bee template is no atribute with spawn actors..
  • JaxterJaxter Member, PRO Posts: 398
    no screen in the same what is stage 320 x 480
  • JaxterJaxter Member, PRO Posts: 398
    i dont neet to follow my main actor to touch but just need creat spawn actor un der my cursor, who collides with my main actor and keeps them in the air like in thar drop the soap game
  • POMPOM Member Posts: 2,599
    Did you make your spawn "Relative to scene" ?!

    Photobucket Roy
  • JaxterJaxter Member, PRO Posts: 398
    problem is in my project file i made new file just with spawn atributes it working.. when i copping it in project it again is randomly spawned
  • POMPOM Member Posts: 2,599
    Do you want to send me the project so i can take a look at whats wrong ?

    Roysadaka (at) gmail (dot) com

    Photobucket Roy
  • JaxterJaxter Member, PRO Posts: 398
    Working, i deleted atributes from bg layer and made invisible spawner actor and put in scene.. !! tnx
  • POMPOM Member Posts: 2,599
    Great :)

    Photobucket Roy
  • JaxterJaxter Member, PRO Posts: 398
    now i want to creat timer with time sawing
Sign In or Register to comment.