lamar's Forum Posts

  • Sounds great. I'll be keeping my eye on the progress. Well done.

    I did put up a tutorial with the same info

    https://www.scirra.com/tutorials/9406/realistic-pinball-physics-with-demo

    I will get the CAPX and plunger done tomorrow.

  • Nice. You should add this in the tutorial section if you haven't already.

    Thanks Burvey!

    I plan on doing that when I have my game finished and so I can explain other physics used like the variable speed plunger and tricks and special affects. Lots of goodies going in to this game/sandbox creation.

    I will include a simple CAPX with it when I get the time.

  • Ok so I have been pulling my hair out for a month working on a realistic pinball sandbox game that will allow users to design their own pinball games and share them with their friends.

    The problems have been many and examples in tutorials suck because there are many factors such as size of collision box and objects in vicinity of a ball that affects physics.

    I finally got the settings right for my game and the paddles have a very realistic feel and you can stall the ball, dribble the ball, pass the ball from one flipper to the other just like in a real pinball game.

    Here is the Demo:

    https://www.scirra.com/arcade/tutorial- ... demo-13984

    Here are the settings I use however like I said there are many factors that will affect physics so you may need to adjust settings and change the collision box and impulse points for your specific game but this is the way it works.

    First create a ball sprite and set the collision box to object:

    Then set the ball physics:

    Then create a paddle with a collision box set to the paddle object and two points for joints and impulse.

    Paddle origin point:

    Paddle Hinge point:

    Paddle impulse point:

    Set the paddle physics.

    Create a sprite box to anchor the flippers to and keep it small and center the origin point.

    Physics setting for joint box:

    Now place your joint box and flippers on your layout where you want them to appear. The flippers will automatically attach to the joint box origin point after we set the events and run the game.

    create some outside boundaries so the ball bounces off the walls:

    Just use a filled box for a sprite and and set the physics.

    Create a bumper bell object. A filled circle with centered origin point and set the physics.

    NOTICE: the Elasticity is set to 1 or higher for objects you want the ball to bounce off of at a faster speed.

    REMEMBER- everything in a game using physics must have a physics behavior to interact or strange and terrible things will happen.

    Your objects should look something like this now.

    Now here are the events:

    Run the layout and if you did everything correctly you should be able to control the flippers very accurately with the arrow keys. If objects are falling down it is because you didn't set them to immovable. Only the paddle and ball is moveable and allowed to rotate.

    That is the exact events and settings used in my game design below and I am just using fancy graphics and some whiz bangs and special affects but the physics are pretty simple once you understand how objects in the real world react with other objects.

    https://www.scirra.com/arcade/tutorial- ... demo-13984

    Bookmark my Demo and you can watch as I progress on the game and I will update with how to make a variable speed ball plunger later.

    Enjoy and leave any questions and feedback in the comments!

  • Just thinking out loud here.

    I would make a sprite for the size dash line you want.

    Then use set animation and create that sprite on a path using an event.

    Set position "Dash" on angle or to object.

    You will need to find each position for the dash to appear next and set the timing with a wait command probably.

    It works in my head lol!

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Put your graphics all in one sprite with each graphic having a different frame and named animation.

    Then you can use set animation in the events.

  • UPDATE: Physics for flippers now fixed. Added a variable speed ball plunger so you can lay that ball in slow and gentle or hard and fast. Use the red dot as a guide. Also fixed targets so they return and added a kicker hole that grabs your ball and gives you a second ball.

    Demo here:

    https://www.scirra.com/arcade/tutorial- ... demo-13984

    Bookmark the game and you can watch the progress as I work to complete it. More obstacles like caves, tracks, and lights, buzzers, whistles and bells all in the works now that I have the physics working.

  • Setting the ball's bullet setting to yes should fix the ball going through the paddle.

    Thanks.

    I tried setting it to bullet which does solve the problem of ball going through paddle but it creates a problem of ball shooting off paddle on a stall.

    I think I have it solved by changing the paddle angular velocity.

    The ball coming at certain angles at the right speed must be missing the frame. The paddle isn't there but our eyes don't see it not being there because it happens so fast lol!

  • You can not combine physics with other behaviors.

    https://www.dropbox.com/s/ecfetra2nwc9f ... .capx?dl=0

    Carefully read the property in the manual.

    Thanks!

    I had the same problem and that seems to have helped.

    Here is my Demo:

    https://www.scirra.com/arcade/tutorial- ... demo-13984

    Here is Pinball physics discussion I started:

    pinball-physics-demo-and-geek-discussion_p1088202?#p1088202

  • Updated Pinball Sandbox with Simpson's Theme Fan Game:

    https://www.scirra.com/arcade/tutorial-games/pinball-sandbox-demo-13984

    I also tweaked the flipper and ball for better finite control and added some grit to the ball so you can aim it very accurately. You can really control the ball about as well as in real pinball now with a little practice.

    The game scoring and missions are still in development but you can see where I am headed.

    I am working on the editor and also a mobile version and flat screen editor version for people that want to design their own games.

    I have a website set up now so I can start promoting the game and sandbox editor when it is finished:

    http://pinball-sandbox.comli.com/

    All great Pinball players use Bump and a hard bump on the front or sides of the machine will dislodge a stuck ball or kick a ball out from a dangerous spot. Use it sparingly!

    Demo here:

    https://www.scirra.com/arcade/tutorial-games/pinball-physics-sandbox-demo-13984?action=updated

    -----------------------------------------------------------------------------------------------------------------------------------------------------------------

    OK I Have been working for over a month on a realistic pinball sandbox game that will allow people to create their own pinball games using different components and share their game creations.

    The biggest issue I have is with getting the ball and paddles to perform as close to real pinball physics as possible.

    I have solved MOST of the issues but I still have two that I just can not figure out and I need help from you serious physics masters please.

    1- The ball sometimes goes through the paddle

    2- the ball bounces off the tip of the paddle when stalled

    Here is the Demo so you can see the problems:

    https://www.scirra.com/arcade/tutorial- ... demo-13984

    Play around with the Demo and you will see the two problems listed.

    Here is the events being used:

    Here is the ball physics settings:

    Here is the Paddle physics settings:

    Here is the Paddle Collision polygon:

    Paddle origin point:

    Paddle Hinge point:

    Paddle impulse point:

    As you can see in the demo the paddle action is smooth and you can stall the ball very well and the paddle feel is very sensitive and realistic.

    UPDATE: Yes I got the physics fixed- I hope!

    I added Angular Velocity to the events and that slowed the flippers down a wee bit so collisions were recognized.

    Here is the new version of Pinball Physics Demo so you can see the difference:

    https://www.scirra.com/arcade/tutorial- ... ion2-13990

    I was going to upload the new version to the old version but for some reason it keeeps giving me the same old version. Any help on that?

  • Hi! The ball collision physics is a bit off sometimes, but still okay most of the time. (I can't tell where but I just felt it)

    Also the ball is a bit 'floaty' to me, maybe making the gravity stronger?

    Nick work by the way! (& merry Christmas )

    Thanks Allen, I am using the bullet behavior so the ball sometimes doesn't act natural. I am trying to use physics but just as many problems with that to overcome.

    My next version will knock your socks off- I hope!

    Merry Christmas!

  • This is a Batman Themed Pinball game.

    https://www.scirra.com/arcade/action-ga ... date-13862

    I am creating a Pinball template so I can make Pinball themed games and not have to design everything from scratch.

    I am using the bullet behavior for the ball and fixed solids for bumpers and flippers. I tried the physics tutorial but bumpers and ball moved too fast and was jittery and had poor ball control. The bullet feature is smoother and feels more like real pinball action IMO.

    I have most of the game working smoothly but I need to get it so I can slow and grab the ball with the flipper like you can in real pinball. Also ball occasionally goes through a flipper?

    Once I get those issues fixed I will get some better graphics designed and start making more themes.

    So go check it out and see if you can beat my high score!

  • The warped tilt action is pretty cool. I love pinball games. I'm excited to see more.

    Thanks! I am still working on the physics of this but here is an update that plays smoother.

    Still haven't figured out how to catch the ball with a flipper like in real pinball but I will.

    https://www.scirra.com/arcade/action-ga ... date-13862

  • This is a Batman Themed Pinball fan game.

    I am designing all the mechanical parts and layout so I can use the parts to create many different pinball games without designing everything from scratch.

    It still has a few bugs with ball and flipper mechanics but plays pretty smooth.

    https://www.scirra.com/arcade/action-ga ... date-13862

    Enjoy and leave bug reports and feedback in the comments please.

  • https://www.scirra.com/arcade/racing-games/kart-racer-extreme-7242

    So you think you can race a Kart huh?

    Well this is a white knuckle Kart Racer so let's see if you can beat my time.

    Make it 5 laps and collect your bonus stars. Submit your best time.

    This is the basis for a much larger GTA style game so please leave feedback and a rating. Tell me what you like and what would make it better- Thanks!

    1- Use Arrow Keys to Drive Your Kart

    2- Avoid Trees and Tires

    3- Drive over Stars for Bonus

    4- Use oil slicks for fancy slide moves

    5- Hit Bumps and Start Line Each Lap

    6- Press Enter Anytime to Restart

    7- Press Space to Submit Score

  • If you like Baseball and Pinball you will love this game!

    I am developing a series of old school pinball layouts that will use sports themes and this is the first and is my own layout and design.

    The ball physics is still not perfect and I will keep working on it but good enough now for lots of fun.

    Come by and check it out. Leave a rating and feedback and report any bugs in the comments.

    https://www.scirra.com/arcade/sports-ga ... nball-2369