bloodshot's Forum Posts

  • I see, thought about it right after I posted. Just had to confirm. Thanks!

  • Hi

    Thanks for the reply. I guess it is a plugin glitch then.

    It is the one made by

    scirra.com/forum/plugin-canvas_t64239

  • Hi everyone.

    I'm not really sure if this should be here or if this is a bug/glitch related to the canvas plugin, but I have one canvas object with origin/image point located in the middle (I don't know how it got there, but it's good-I like it where it is).

    However, I cannot seem to figure out how to create a new image point and move it to the middle-right corner. The set origin and image point button is disabled. And when I create a new canvas object its origin is always set to top-left while the button to move it is still disabled. Is it even possible to move the image point/origin for a canvas type object? Many thanks!

    EDIT: I just checked the properties bar, I can set set initial hotspot but I want to make a new image point.

  • bloodshot

    >

    > > Sure, just enable unbounded scrolling and then create the level as it comes onscreen using logic.

    > >

    > can you post capx example? thank!

    >

    thehen hasn't been on the forum for over 6 months.

    It would be best if you create your own thread with as much information as possible with your query.

    Hi! Thanks for the quick heads up. Ok, I will try to do that instead.

  • Sure, just enable unbounded scrolling and then create the level as it comes onscreen using logic.

    can you post capx example? thanks!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Syntax Error: Doesn't seem to work with .svg(urlbase64code) files created using adobe illustrator. any advice?

  • Anyone care to share capx example on this one? Thanks!

  • Great!^^

    I just looked them up. When using Paster is there anyway to set xy coordinates?

    like:

    GroundPaster: Paste Object "GroundSprite" into canvas (GroundYArray.CurX,GroundYArray.CurValue)

    Currently this is what I have to plot the ground.

    Layout&Width Size=480,640

    GroundYArray: Set width =55(for this example)

    ---
    GroundYArray: for each x element
    { 
    GroundYArray: Set value at GroundYArray.CurX to tokenat("21,21,22,23,24,25,29,30,33,37,40,41,43,45,47,48,49,49,50,50,50,50,50,50,50,50,50,49,49,48,48,48,47,46,46,45,45,43,42,41,41,41,41,40,40,39,39,39,38,38,38,38,38,38,37,37(and so on)", GroundYArray.CurX, ",")
    
    (Disabled to try paster)
    Create Object GroundSprite on layer 0 at (GroundYArray.CurX,(LayoutWidth+100)-int(GroundArray.CurValue))
    } 
    ---[/code:8xtzin9a]
    I've been thinking, is it possible to just draw a single line creating a single object connecting the GroundYArray instead?? Thanks!
  • When your scroll value reaches your array width reset the count of the array.

    Hi newt!

    Thanks for the quick reply!

    At first I thought, if I could just plot all of the 3,601 numbers into a single layer say "terrain", I would be able to treat that layer as as single object much like a "tilebackground" where one can just reset x to a value (as you say-when my scroll value reaches the array width). I also thought about putting the ground_sprite in as a family, but really there is only one sprite before run-time so I dont think it was a viable solution. I still couldn't seem to find a way to reference them as one entity.

    Also, as you might have already guessed, the cpu is rid high when i initially start the game and move my platformer, so any more suggestion on how to plot these numbers and treat them as one would be a treat.

  • Hi, everyone!

    So I've got 3,601 specific numbers which I store in an array to determine the Height/elevation of the ground.

    On runtime I do:

    For each "x" in (GroundArray)element i Create Object (Sprite 1x300) to cover the ground

    Everything seems to be working fine, except i'm not sure how to scroll loop the ground so that when i reach my layout width the first data comes full circle.

    What I am trying to achieve: I am trying to do a 480x640 moon lander-side(that goes left and right) scrolling game with infinite looping kind of game.

    Any advice?

    Thanks!