Timer problem and Problem with moving actor..Please Help!

GuaveMediaGuaveMedia Member, PRO Posts: 1,262
edited November -1 in Working with GS (Mac)
Hey,

I was an idiot.Instead of using the older version of GameSalad I used the new one
again. So there is the timer problem, and I have actors appearing after fixed seconds.

So my question is now if there is a way to solve this problem anyway?? Please say yes :)
Waiting for the new update is no option okay....so is there a other way?

And my second problem is that I want an Actor to jump on an moving actor, so I set the rule when collide change self etc. but then you can jump on the edge of the actor upwards, I only want the actor to jump when really standing on it!

thx Alex

Comments

  • GuaveMediaGuaveMedia Member, PRO Posts: 1,262
    Nobody an idea??
  • GuaveMediaGuaveMedia Member, PRO Posts: 1,262
    Can someone please help me with the walljump :/

    thx
  • cbtcbt Member Posts: 644
    You can use something like;

    If self.podition.Y equals wall.Y + wall.height/2 Than jump.

    This should work. I'm on my phone, i can explain further when i get back home if you want..
  • GuaveMediaGuaveMedia Member, PRO Posts: 1,262
    Yeah please :) thank you!
  • GuaveMediaGuaveMedia Member, PRO Posts: 1,262
    Okay problem solved :)) thx again cbt.

    But is there a way to solve the timer problem?
    I am spwaning actors after 0.5sec, 1sec, 1.5sec and so on...
    Is it possible to solve the timer delay?

    thx
  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    What is the timer problem you are having? I don't have timer problems so I cannot offer you any advice when you say you are having "the" timer problem

    Basically please explain, Exactly What you are doing/have setup, The result you are trying to achieve with what you have setup, and the result you are getting instead.
  • GuaveMediaGuaveMedia Member, PRO Posts: 1,262
    Okay ehm the walljump problem still exist, how are you guys solving it? When I use cbt's method, the probem is that I don't know the lowest y position of my actor because the y position in the actor is the y size of the middle of the actor and not the bottom..

    I have just the rule: After 0,5sec, spawn actor...

    And in my AdHoc the spawning doesn't happen after 0.5sec, instead it happens after 2-3 seconds..

    thx
  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    are you running a bunch of timers spawning a bunch of actors at one time?
  • GuaveMediaGuaveMedia Member, PRO Posts: 1,262
    Every 0.5 seconds only one actor!

    Concernign again the walljump:
    If self.podition.Y equals wall.Y + wall.height/2 Than jump.

    my wall's y = 138 height of wall=1....

    means: if self.psotion equals 139 + 1/2 then jump or?
  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    every 0.5?

    thats prob your problem. if the actor is bigger than like 4x4 its prob killing the FPS which will cause a big lag when you keep trying to spawn. Is it instantly a problem or does it start out fine and then get horribly delayed?
  • GuaveMediaGuaveMedia Member, PRO Posts: 1,262
    the actor is 20x20.... the first one (after 0.0) spawns and then there is a delay...

    What should I do instead?

    Can you also help me with the walljump? When I use cbt's option
    If self.podition.Y equals wall.Y + wall.height/2 Than jump.

    how should I say that because my actors:

    wall: height 1 y-position=138
    actor: height 65

    thank you :)
  • GuaveMediaGuaveMedia Member, PRO Posts: 1,262
    Just to bring clarity into the whole thread:

    1, The walljump I definded like this:

    when self postion = 170
    change self motion y to 220

    170,5 because of my wall (height 1 and y-position 138) and my actor (height 64 )
    So I thought the the middle of my actor would be 32 so I added the 32 to the 138,5 of the wall.
    But it doesn't works :/

    2, The timer problem is still here, I also tried it without spawning, jsut two scenes, changing after 2 seconds to the next scene...also a delay :/

    thx for help
  • GuaveMediaGuaveMedia Member, PRO Posts: 1,262
    Nobody an idea how to solve the walljump problem?

    The timer problem is solved...

    Please help :) Ready to publish then :)

    Alex
Sign In or Register to comment.