How do I Have an object rebound after getting hit by an enem

0 favourites
  • 9 posts
From the Asset Store
Hand-painted tiles, objects, animated objects, and background to build a colorful Mayan civilization environment.
  • so all my attempts at this have been mostly straight lines have a look

    WHAT I WANT

    player-

    ########

    #######

    ## #####

    ######

    ####

    ###

    ###

    ###

    enemy

    WHAT I GET

    player ################# P ###

    # ###

    # ###

    # ###

    E ###

    E

    P

    #

    #

    # P###################E

    #

    #

    E

    I tried every thing from vectors to simulate control to move at angle(try to guess which one's which)

    but it just doesn't work call me OCDP but HALP

    P.S.:if you need a better Idea of the curve think about sonic when he gets hit

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • it doesn't count spaces ......

    Great ... just GREAT

  • player-

    -----------########

    -------------------------#######

    ----------------------------------########

    ------------------------------------------######

    --------------------------------------------------####

    ------------------------------------------------------###

    ---------------------------------------------------------###

    ------------------------------------------------------------###

    ------------------------------------------------------------enemy

    WHAT I GET

    player ################# ------------------------P ###

    -----------------------------------------# -------------------------------###

    -----------------------------------------# ----------------------------------###

    -----------------------------------------# --------------------------------------###

    ----------------------------------------E -------------------------------------------###

    ------------------------------------------------------------------------------------------E

    --------------P

    --------------#

    -------------#

    -------------# -------------------------------------P###################E

    -------------#

    -------------#

    E

  • help

  • Have you tried adding a physics behavior and using Apply force action?

    Even if your not using physics in game specifically you can still enable/disable the behavior as needed.

  • Have you tried adding a physics behavior and using Apply force action?

    Even if your not using physics in game specifically you can still enable/disable the behavior as needed.

    I'm not really good with the physics behavior could you upload a capx please

  • I don't understand any of the --- or ### , so without any further explanation I don't understand the question and as such won't be able to provide an answer..

  • you ever heard of paint? like - use paint to draw what you need, because this doesn't explain anything.

    or give us a CAPX for it.

    but if i understand correctly, you want something like ping pong? use tan function to calculate new angle for the ball or whatever you are using

    to rebound it.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)