**HELP PLEASE**

FloridaGamesFloridaGames Member Posts: 328
edited November -1 in Working with GS (Mac)
I want my ball to bounce of a wall, which it does, but it slows down each time it hits a wall. How do i keep it going at a constant or accelerating speed?

Comments

  • calvin9403calvin9403 Member Posts: 3,186
    why do you make a new thread?
  • FloridaGamesFloridaGames Member Posts: 328
    because no one answered the last one
  • ChaserChaser Member Posts: 1,453
    Change your title please
  • calvin9403calvin9403 Member Posts: 3,186
    it's only been there for 10 min
  • calvin9403calvin9403 Member Posts: 3,186
    Chaser said:
    Change your title please

    help is not a good title
  • ChaserChaser Member Posts: 1,453
    Increase your restitution on the wall and reduce the wall friction
  • FloridaGamesFloridaGames Member Posts: 328
    other people have gotten help within a minute of posting
  • FloridaGamesFloridaGames Member Posts: 328
    Thank you very much Chaser.
  • calvin9403calvin9403 Member Posts: 3,186
    TacoStand said:
    other people have gotten help within a minute of posting

    not everyone
    be patient!!!!!!!
    you are not getting help because of this
  • TacoStandProductionsTacoStandProductions Member Posts: 20
    WOW we have the same names... lol. I should have made my GS account sooner. I had been around the forums a bunch and developing but never made an account. wow. haha. Nice to meet you tacostand..
    and to everyone.
    WE ARE DIFFERENT PEOPLE lol.

    TacoStand
  • ChaserChaser Member Posts: 1,453
    Sometimes we have the answers and sometimes we are just caught up reading pages of posts to see if we have answers. I have many questions that have never been answered and probably never will because of whatever reason.
  • calvin9403calvin9403 Member Posts: 3,186
    Chaser said:
    Sometimes we have the answers and sometimes we are just caught up reading pages of posts to see if we have answers. I have many questions that have never been answered and probably never will because of whatever reason.

    +1
  • FloridaGamesFloridaGames Member Posts: 328
    I came across another problem now. When the ball hits the wall at an angle, it doesn't bounce off the wall at the same angle. Any suggestions?
  • sparkzillasparkzilla Member Posts: 152
    Hi, the previous question was not fully answered in the forum. It is actually quite tricky to get a ball to accelerate controllably after hitting a wall. If you use Accelerate it will not work as expected and Change Velocity also has a few problems too.

    This is what I did to get the actor to bounce off of a wall and continue to accelerate. Thanks to TshirtBooth who got me almost the whole way there...

    Make a ball actor with the following timer

    Timer: Every 0.1 seconds
    Change Attribute self.PuckSpeed to self.ballspeed + 10 <--change number to speed you'd like

    Rule: When Ball hits Wall
    Change attribute: Ball.Direction = 1

    Rule: When Ball.Direction=1
    Constrain: self.Linear velocity. X to -self.Ballspeed

    You can check it by putting a Display Text with self.Linear velocity. X in the text field

    My ball did not change Y direction, you'll need to adjust the above to make it also work for Y direction.

    __________________

    Coming Soon!: Sweepr
  • jonmulcahyjonmulcahy Member, Sous Chef Posts: 10,408
    just wanted to remind everyone of a few rules here. in addition, try checking out the pong template in the GS application, it may have some good rules.

    1. SEARCH FIRST. It may not work as well as we’d like it to, but our Search does still turn up relevant items more often than not. So, to avoid posting about the same thing time and time again, just do a quick search before posting.

    2. REDUCE REDUNDANT THREADS. With new posts of repeatedly answered questions, wish lists and feature requests, and having one post of your game, then another post of an update of your game, I think we all can appreciate less threads to trudge through. Especially when most people stare at the "Latest Discussions" section and the threads are just shifting down like crazy, especially when people don't...

    3. USE DESCRIPTIVE TOPICS. You do have a whole line (it even word wraps!) to put something eye-catching and descriptive, so please refrain from naming your topic something completely useless like "Question..." and "Help, please!!!" Also, if your topic is something that's directed toward someone, write them on their wall, or go to their email or website and contact them through there. But, if you want others to chime in also, leave out their name on the topic and place it in the body of the topic instead. With these practices, the board doesn't end up look like a crazy IM chat history, but a bunch of informative, useful topics, full of discussion, hints, tips, and input from everyone in the community.
  • firemaplegamesfiremaplegames Member Posts: 3,211
    I have balls bouncing off walls at a constant speed in my Magnitude demo on my wall:

    http://gamesalad.com/game/1804

    It is difficult to pull off actually, and requires a bit of math. Feel free to dig into it and use it for whatever you want!

    Joe
Sign In or Register to comment.