Speeding an actor

Gene4GamersGene4Gamers LebanonMember, PRO Posts: 57

Hello,

I have 5 actors who act like enemies and they go towards the main actor in a speed of 300...
I want to increase that speed by time, like per say 10 each 1 second .

Regards,
Gene4Gamers

MAKE GAMESALAD INTEGRATE ADMOB ( Google ADS ) :

Go to this link : http://bugs.gamesalad.com/show_bug.cgi?id=261

Find the " vote " button and press it

Comments

  • simon31184simon31184 Member Posts: 14

    if you want to increase the speed with precision in a specified moment/part of screen you have to create an integer attribute inside your enemies called myspeed and set it to 300, so I think you have a move behavior inside of those actors, and you have to set that speed to your self.mypeed. After that create an invisible actor "speedup" and create a rule inside your enemy that when your enemy and sppedup collides, ""

  • SocksSocks London, UK.Member Posts: 12,822
    edited August 2014

    @Gene4Gamers said:
    I want to increase that speed by time, like per say 10 each 1 second .

    300+(self.Time*10)

  • Gene4GamersGene4Gamers LebanonMember, PRO Posts: 57

    @Socks said:
    300+(self.Time*10)

    If by score could I write 300+(game.Score*10) ?
    So if my score is 2 than the speed is 320?

    MAKE GAMESALAD INTEGRATE ADMOB ( Google ADS ) :

    Go to this link : http://bugs.gamesalad.com/show_bug.cgi?id=261

    Find the " vote " button and press it

  • SocksSocks London, UK.Member Posts: 12,822

    @Gene4Gamers said:
    If by score could I write 300+(game.Score*10) ? So if my score is 2 than the speed is 320?

    What happened when you tried it ? :)

  • Gene4GamersGene4Gamers LebanonMember, PRO Posts: 57

    @Socks said:
    What happened when you tried it ? :)

    I don't know :stuck_out_tongue_closed_eyes: they are coming but I don't know at what speed, I mean if it works :stuck_out_tongue_winking_eye:

    MAKE GAMESALAD INTEGRATE ADMOB ( Google ADS ) :

    Go to this link : http://bugs.gamesalad.com/show_bug.cgi?id=261

    Find the " vote " button and press it

  • SocksSocks London, UK.Member Posts: 12,822

    @Gene4Gamers said:
    I don't know :stuck_out_tongue_closed_eyes: they are coming but I don't know at what speed, I mean if it works :stuck_out_tongue_winking_eye:

    Yes, it will work just fine.

    If game.score is 2 then . .

    300+(game.Score*10) = 320

Sign In or Register to comment.