Problem with my platformer

Benjamin_m5Benjamin_m5 Member Posts: 646
edited January 2012 in Working with GS (Mac)
Hey there

I work at the moment on a plat former game. But now i've got a problem. When I press the jump-button and the left-button at the same time, then the actor goes only slowly down. Here's a video about my problem and i hope someone can help me :)

---
Benjamin

Comments

  • ozboybrianozboybrian PRO Posts: 2,102
    Are you working with linear velocity y and x using accelerate down as gravity?

    What are you rules at the moment?
  • Benjamin_m5Benjamin_m5 Member Posts: 646
    Here is the video of my rules. I hope someone can help me with my problem.

    ---
    Benjamin
  • LeonardDeveloperLeonardDeveloper Member Posts: 4,630
    We cant see your rules in the video clearly pleas post a screenshot
  • scitunesscitunes Member, Sous Chef Posts: 4,047
    The move behavior is causing the problem. Try change velocity or try a change attribute behavior and change the self.linear.motion.velocity.X
  • guillefaceguilleface Member Posts: 1,014
    what i do is create a game boolen attribute called groundtouch. now when actor collides with ground change that attribute to true, i believe you have arrows to move the actor so add a new requirement that when groundtouch is true to move left or right, what it does is that when the actor jumps is not touching the ground no more so it changes groundtouch to false.
  • Benjamin_m5Benjamin_m5 Member Posts: 646
    OK i'm back. Couldn't log in since two days...

    Will try this tomorow because now i'm going to sleep now :)
    ---
    Benjamin
  • Benjamin_m5Benjamin_m5 Member Posts: 646
    Hi there everybody
    It works now very good. I've made it like this:

    For left and right:

    When touch is pressed: constrain attribute self.motion.linear velocity.X to 130 (for left -130)

    For the jump:

    When touch is pressed: accelerate up 1000
    Otherwise: accelerate down 1000

    Thanks much to all
    ---
    Benjamin
Sign In or Register to comment.