Shadowblitz16's Forum Posts

  • bump sorry

    but I've been waiting about a week now and I still need help

  • If you hud-object is on a layer without paralax it's coordinates will stay the same..

    Maybe you can get what you want using these expressions:

    CanvasToLayerX(layer, x, y)

    CanvasToLayerY(layer, x, y)

    Calculate the layout co-ordinates underneath a position in canvas co-ordinates for a given layer.

    LayerToCanvasX(layer, x, y)

    LayerToCanvasY(layer, x, y)

    Calculate the canvas co-ordinates above a position in layout co-ordinates for a given layer.

    ya in most spots of the layout these return null or -

    bug maybe?

    Edit: LittleStain

    I think this is a bug but I am using r206 and r211

    I removed the ("HUD X: " &) from ("HUD X: " & CanvasToLayerX(0,hud.X,hud.Y)) and it started returning the correct values

    Edit2: ok so it must of been something with my project getting the null and -

    but these functions still do not return the correct values

    they seem to have different offsets depending on where i put my hud in my room

    for example

    my huds origin is 0,0 on the sprite so I need it to always return 0,0 when my hud is at the top left of the room

    LittleStain plz reply

  • C-7 better yet is there a 2d camera plugin for C2 that supports x y width and height?

    maybe multiple cameras too?

    Edit: or a way to off set the camera in this project depending on where the view is placed and its width and height?

    https://www.dropbox.com/s/uc15luie6knhwrq/Camera.capx?dl=0[/code:3tpsdbgk]
    
    here is a example of it not working
    [code:3tpsdbgk]https://www.dropbox.com/s/4nb795chybzj75n/Camera%20offset.capx?dl=0[/code:3tpsdbgk]
  • wait so any irc client can connect to it?

  • irc.esper.net will not load it says

    This webpage is not available

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • is there a current irc for construct 2?

  • Edited:

    how do I return my huds X and Y in a textbox

    I tried "X: " & hud.X

    but it doesn't update it just is 0 all the time

    and yes its in a every tick event

    Edit2: I want to return my huds origin points x and y in the layout

    not the layer and not the screen

  • sorry

    the view is 640,480

    the hud fills the entire screen

    leaving a box for the view at the hud position of 222,76 with a width and height of 360

    I also don't want my camera to let the player leave the centre of it

    but have box for the view(not the hud) to stop at the Layout borders

    what state do you think I should use?

    Edit ya the hud is bouncing around

    and its anchored

    Edit Again: so right now I'm trying to...

    set the scroll to postion to...

    X: clamp(player.X-Xoffset,View.BBoxLeft,View.BBoxRight)

    Y: clamp(player.Y-Yoffset,View.BBoxTop,View.BBoxBottom)

    Xoffset being a global number of 82

    Yoffset being a global number of 16

    view being a object filling the view gap in my hud

    it does good except when I get to the edge of the screen it doesn't clamp the view to the edge of the layout

    it seems to be what I'm looking for though

    I'm just not very good at math

    just type this in at imgur.com

    /hOKJgEe

    its the pic of my hud

  • wait? the website isn't secure?

    that doesn't seem good.

  • it not a platformer its a asteroids like game

    also what is the target for?

  • I can't open it.

    are you using a beta version of C2?

  • does construct 2 export to win 7 desktop?

    I know it says Make Windows apps but this does mean win 8 correct?

    also does anybody know if there any plan on N3DS export?

  • k thankyou

  • can a admin update the faq to include the posting error this topic does not exist

    I thought it had to do with rep

    but it seems you can just clear your cookies to fix the problem

    you might want to confirm that though

  • could you post a example equation?

    also would I scale the camera object to fit inside of the view square or would I make it the same size as the player?