LittleStain's Forum Posts

  • So you really want

    local number blabla=1

    system repeat 10 times

    system wait 0.5 seconds

    system create object sprite_obstacle at (blabla*100, 1961)

    prite_obstacle set width to 50*blabla

    system add 1 to blabla

  • Well there is the "is on layer"- condition..

    so it would be easy to:

    sprite is on layer 1

    sprite set x = sprite.x+50

    or

    system pick sprite where sprite.layernumber = 1

    sprite set x = sprite.x+50

  • On start of layout

    (subevent)

    -- sprite1 pick by unique ID = 26

    change size

  • > The way above is the easiest.

    >

    > Another idea is actually doing the 3d transformations:

    >

    > or even using a 3d plugin:

    >

    >

    when i try to preview your capx it shows : "unable to launch browser 'node-webkit' for preview" why?

    The preview browser in project properties is set to "NW.js"

    If you haven't downloaded Node webkit it will not run..

    Either set preview browser to your desired browser or download the latest NW.js

    You can dowmload it here:

    https://www.scirra.com/nwjs

  • Which one do you want to change?

    If you can explain it to me, you might be able to explain it in events..

  • I'm not saying this is the best solution, but it's one..

    https://dl.dropboxusercontent.com/u/48563442/Lanes.capx

    If you need an example for something like this, you might want to follow some tutorials before proceding to more difficult matters..

  • That would consist of changing/switching the y position..

    What you could try is something like this:

    Create a global variable lane

    • system compare variable lane = 1

    > player set y to 250

    • system compare variable lane = 2

    >player set y to 350

    • system compare variable lane = 3

    >player set y to 450

    • on up arrow pressed
    • system compare variable lane <= 2

    > system add 1 to lane

    • on down arrow pressed
    • system compare variable lane => 1

    > system subtract 1 from lane

  • Do you mean converting a binary number to a decimal number?

  • If this event should be triggered every tick, I guess it's pretty effective..

    My guess is the event would only have to be triggered when certain things change in the game, so putting these events in a function and calling them when needed would probably be better..

  • Yeah, I agree, your method of creating objects is not optimal..

    Adding more precise conditions would be a lot better..

    A For each block create a new block isn't really working..

    Adding a trigger would work much better, Then it would only do it once and when needed..

    Although I'm not quite sure what you are trying to do here, so I can only react to the code and not your intentions with it..

  • If you don't want to write your own events for layout transition there is also this third-party-plugin:

    Layout-transition-plugin

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • The particle object doesn't support frames, animations and or load image from url..

    Unless I'm missing something, I guess your best option would be replacing one particle-object with another particle-object which has the different sprite..

  • I'm not sure why anchoring the bottom to the top would be so imortant, but anyway

    Instead of using the anchor behaviour you could always just set the position of your objects (this should only have to be done once)..

    Using viewportleft(), Viewportright(), viewporttop(), Viewportbottom() positioning the object to the right location on a non paralax layer should be simple..

  • I'm guessing, you know which sounds belong to which category..

    So in the play audio action (which you would have to make for each sound anyway) you could assign the right variable to the right sound..

    If you want to affect sounds already playing, adding the tag "Music", "Ambience", etcetera to the play action, should work..

    Then you can reference those in your event-sheet to set the volume..

    Could be, I'm completely missing the point of your question, though..