LittleStain's Recent Forum Activity

  • I think you are setting the sprite angle instead of the bullet angle..

    And probably you'll want to set the bullet speed back to 0 when the distance to the player is close enough.

  • In the bullet behaviour properties you can set the set angle to no.

  • Give the object a boolean variable

    on object clicked set set boolean to true

    on tile clicked if boolean is true move to tile

    on arrived set boolean to false.

  • Did you look at the moveto example in the new project dialog?

    Using bullet without setting angle is a possibility.

    You could also use the moveto 3rd party plugin, you can find it in the plugin section.

  • Make sure the original direction of your sprite is facing right.

    Example:

    <img src="https://cdn1.iconfinder.com/data/icons/defaulticon/icons/png/256x256/arrow-right.png" border="0" />

    Make sure in the bullet behaviour properties set angle is set to yes.

  • Is your screen big enough for the taller level?

    What way have you set the scaling in project properties?

  • The issue here is the scrollx and scrolly

    By changing the paralex of the layer scrollx and scrolly are not related to the layer anymore.

    I think your setup would work if you change scrollx with (viewportleft(0)/2) and scrolly with (viewportbottom(0)/2)

    the (0) behind the viewportleft determines the position on layer 0 that is in the middle of the viewport, so it should also work if the layer uses different paralex.

  • So you only have to use the x-position and set the y to viewportbottom(0)+0.5*objectheight.

  • if you want the whole object to be within the viewport you should add or subtract object width and height to those values.

  • create object :

    on layer (0)

    x : random(viewportleft(0),viewportright(0))

    y : random(viewporttop(0),viewportbottom(0))

  • That is exactly what the expresion distance(x1,y1,x2,y2) does.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I think I still don't understand what you are trying to achieve and why it is a problem to achieve it.

    If you spawn an object. (why spawn it instead of create it?) you can still use on created.

    If you make sure the textobject has an boolen variable spawned, you could add pixels to the y-coordinate of all textobjects with the boolean spawned false and after pick all textinstances and set boolean spawned to false. all in one event on created.

LittleStain's avatar

LittleStain

Member since 26 Apr, 2011

Twitter
LittleStain has 4 followers

Trophy Case

  • 13-Year Club
  • Email Verified

Progress

14/44
How to earn trophies