actors leaving the screen, how come

vegasmike1vegasmike1 Member Posts: 192
edited November -1 in Working with GS (Mac)
I have a pinball game, flippers and all that going on, everything works but sometimes when I really smash the ball with the flipper it just screams off the screen. That said I have invisible borders that are suppose to put the ball back in play with a collied behavior. It works if the ball is just sort of poking around but if it picks up any speed, FAST, the it just blasts through the barrier, ie the inviso wall. Anybody else had this problem or know of a fix.

Also I want to use touch to activate the flippers, right now its with keys, which work perfectly but I am unclear how I define a touch actor "I GUESS" that would cause the flipper to activate. I have a screen that is 960 tall in portrait mode, so I want touches on the right to flip the right flipper and the left side touch to flip the left flipper.

And I want a new Jaguar for my birthday and a tall blonde women with a very tight game salad tshirt annnnnnn

Any help would be of course appreciated.

Thanks
Mike

Comments

  • KamazarKamazar Member Posts: 287
    You'll have to increase the density for invisible borders. If it's too low, the ball, like you've already witnessed, will pass through it like a warm knife through butter.

    For the flippers, create two more invisible actors of equal sizes. One goes over the left, and another over the right. When they're touched, the flippers flip. Something along the lines of,

    Right Flip = 0.
    If actor "right flip trigger" is touched.
    Right Flip = 1

    If Right Flip = 1
    Flip "Right Flipper"
    Set Right Flip = 0

    Same for the left. And bro, I want that Jaguar and well proportioned woman myself, but a red head in my case. Rowr.
  • mrfunkleberrymrfunkleberry Member Posts: 424
    Ball problem : Try making your walls much thicker. (if the ball is 1000 pixels a frame then its not touching your walls at all)

    Flipper problem :
    when touch pressed
    when mousex > 160
    do right flipper
    otherwise
    do left flipper

    Jaguar and women problem : They have been sent.
  • vegasmike1vegasmike1 Member Posts: 192
    Kamazar,, my new best friend.

    Thanks for the tip about the density, I tired it and it seems to have worked, until I find warp speed and then to heck with the game.

    I am sending a redhead your way, but it might take a while I have only about 1.5 mb up for upload.

    This whole script kinda of thing is weirding me out, I get what you wrote and I could make those actors big so that no matter where the flipper was in the view I could trigger it, but I dont really know how to say this actor, the invisible one is going to tell the visible one to do something. Yep, I am lost in the abyss of being not that smart.

    However if you come to Vegas, I can for sure get you a free room and a bunch of redheads if you can tutor me on this one point.

    THis actor tells that actor to do its thing. Just cant figure it out.

    Mike
  • scitunesscitunes Member, Sous Chef Posts: 4,047
    sounds like you may also need to set the max speed so that it doesn't go into warp speed.
  • vegasmike1vegasmike1 Member Posts: 192
    You guys are great, seems like I am sending redheads all over the place. No worries there are thousands of them in vegas, but I think they are all dyed beauties, but they also seem to dance at these very cool clubs, which I never attend. I think I allergic to shiny gold poles, or my wife has no sense of humor....yep its the later.
  • KamazarKamazar Member Posts: 287
    Ok, so you're gonna set up a boolean variable under scene attributes. Two, actually. One labeled "Right Flip" and another "Left Flip". Set them to false.

    Two actors invisible actors, "Right Flip Trigger" and "Left Flip Trigger".

    Then we have the two actual flippers, "Left Flipper" and "Right Flipper".

    So when your finger touches the invisible trigger for the right flipper...

    If "Right Flip Trigger" is touched
    "Right Flip" = 1 (1 means true in computer language, which is why all coding languages are based on 0 and 1 combinations, all processes are essentially flipping of switches).

    If "Right Flip" = True
    Make "Right Flipper" flip (whatever behaviors you have for the actual action of the flipper moving)
    Change "Right Flip" to 0 (0 is false, as you've probably figured out by now. setting it to 0 allows the flipper to be flipper again)
  • vegasmike1vegasmike1 Member Posts: 192
    I and my oldish brain, which was damaged in the drug wars of 1969 will try to do as you suggest, zeros and ones, whats up with that business, I mean could it not be something more suggestive, like not zero and not one, or.... I will go and try to harness this new power. Crossing fingers. I will get this business but a doc that I could just read would be even better....These GS folks need to get doc in order. The wiki is, well kinda weekeey.

    Off to try
    Mike
Sign In or Register to comment.