some help

0 favourites
  • 6 posts
From the Asset Store
Game with complete Source-Code (Construct 3 / .c3p) + HTML5 Exported.
  • Im currently making an asteroids game.

    I want to put an "hyperspace" function that teleports your ship to an area of the layout that doesnt have any asteroid "safe zone".

    Any ideas on how can i do that?

    Is there a function to detect if there is an object in a certain position?

    Ty for the help

  • BUMP

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • BUMP

  • No need for bumping so much in a day... anyway, on the 2nd or 3rd page I found - construct.net/en

    Should help you..

  • ummm

    function"movePlayer"

    Pick Nth "asteroid"    floor(random(0, asteroid.count))

    -> set player.x = asteroid.x + whatever, player.y = asteroid.y + whatever

    on start of layout[[or however when player starts in area]]

    call function "move player"

    if player is overlapping

    call function "movePlayer

    just a thought. procrastinator is right. Please give it a day. Different times zones, jobs, special events all contribute to different reasons for a response that isn't in a few minutes. Some times you will get lucky, other times it could take days. hmm, I should bump my scenegraph suggestion. it's been about 2 weeks :D

  • I did it. Ty for the help guys.

    Just for the record, I did what jayderyu said. But I also used an invisible SafeZone to check if the player was visible in the screen. I also had to check if there was at least one asteroid with all the conditions because my code was throwing javascript errors.

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