Help with timer deleting an spawn actor?

ArtieChokeArtieChoke Member Posts: 30
edited November -1 in Working with GS (Mac)
Hi there,

I dunno what I am doing wrong, as I would of thought it would be as simple as it is in my head, haha, obviously not! I have a rule in which when touch is pressed, an actor is spawned. (Being an image) But I don't want that image to hang about so I put a timer in the same rule saying after 1 second, destroy actor. Thinking that it would destroy that whole rule sorta thing. Noob question, I know, haha, sorry if it is been asked before, search function is pretty bad/confusing.

Also, as a side mission :P I was wondering if it is possible to make an image follow your finger until released? So it will just stretch or something as it goes along. I have followed TShirtBooths helpful tutorial on Left and Right swiping and it is all working, but was just wondering if this can be done.

Thank you guys!

Comments

  • entersimonentersimon Member, PRO Posts: 273
    If all the spawned actor is supposed to do is die after 1 second, then put a timer inside of that actor.

    after 1 second:
    destroy actor

    Basically, let the spawner be the spawner, and let the doomed actor destroy itself.

    To the second part: Yes, it's possible, but the math is tricky. It would be a couple of constrain attributes with math that I don't know where to begin with. It is possible though, I say that without any doubt, so if you're interested in it then go for it. Be sure to come back here and share the math with the rest of us.
  • ArtieChokeArtieChoke Member Posts: 30
    Oh god, that's embarrassing for me! Haha, I tried that but I still put the timer in a rule, didn't try it without the rule until you just posted that, and it works. Thank you! I knew it was something so small and noobish, haha. And I will try and do the second part now, I will post back if I figure it out, otherwise any help is greatly appreciated!

    Thank you entersimon
  • entersimonentersimon Member, PRO Posts: 273
    Anytime!

    No need for embarrassment. It's better to ask the question if you haven't been able to find the answer you're looking for already in the forum. Someone out there will search for your exact problem, and they'll get their answer without having to ask for it because you had the guts to put yourself out there.

    There are no stupid questions (so long as you search the forum before asking ;)). No questions makes bad developers, and we don't need any more of those!

    Good luck to you and me!
  • ArtieChokeArtieChoke Member Posts: 30
    Alright, thanks to orien2v2 for the great demo on the second part of my question, it works great now.
    orien2v2 said:
    Here's a link for the demo: http://gamesalad.com/game/play/79364
    You could search for 'drawer orbzample' from the 'New' section in GS and look into the project file.

    This makes a line follow where you are pressing and releasing, the only thing is that it keeps the line there but, that is an easy fix, just put a timer in your "segment" actor and just do every 0.5 seconds or how every long, destroy, which is exactly what I wanted. This is great, hope this helps anyone else as well!

    This is where you can find the forum where the quote is!
    http://gamesalad.com/forums/topic.php?id=19242
Sign In or Register to comment.