Game executes on collision event on startup

0 favourites
  • 6 posts
From the Asset Store
Very simple code without excess options (15 events for server and 11 events for client)
  • My game executes the on collision with another object event upon startup in the browser. This causes the player to shoot forward. Is there anything I can do? Thanks.

  • Could you post the (capx.)?

  • sure...its pretty primitive right now...http://dl.dropbox.com/u/40563410/teleport.capx

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I'm really not sure what your desired goal is, but this is what I see:

    1. You have one instance of a bullet in your layout. Since the bullet sprite has a bullet behavior, it immediately moves right (it's starting angle) as soon as the layout starts, and ultimately collides with a dest sprite.

    2. When the bullet hits the dest sprite, you have the player sprite's position set to the bullet's location, which is why the player appears to "jump".

    Again, I'm not sure what your goal is, but it may be simple as adding an action on the start of layout to destroy the existing bullet sprite.

  • Or if your bullets are going to be destroyed when they leave the layout anyway, add the 'Destroy outside layout' behaviour and put the bullet on the outside of the screen in the editor.

  • Thank you zatyka. That solved my problem. What I am trying to accomplish with it is to create a teleporation mechanic. Is there a method to set this as answered, or give credit to the person who answered it as a way to increase points?

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