Xionor's Recent Forum Activity

  • I was mostly kidding, as pointless as it was.

  • Paradox

    Quoting myself

    "The problem is you can't directly put VarParallax in an expression about the Sprite that's on the layer, without first doing other checks.

    First you have to find which VarParallax the sprite's Layer is assigned to then use that hard-coded varaible in all operations further down the Sub-event chain. If you need to change to a diffferent layer's parallax a few Sub-events down you have to start all the way from the top again to select the proper layer.

    Also if you need to check the variables of MULTIPLE layer's parallaxes, then you're in for quite a few lines of Events and actions just to figure it out."

  • Well it's clearly Avast that's the problem :p

  • Jase00

    The problem is you can't directly put VarParallax in an expression about the Sprite that's on the layer, without first doing other checks.

    First you have to find which VarParallax the sprite's Layer is assigned to then use that hard-coded varaible in all operations further down the Sub-event chain. If you need to change to a diffferent layer's parallax a few Sub-events down you have to start all the way from the top again to select the proper layer.

    Also if you need to check the variables of MULTIPLE layer's parallaxes, then you're in for quite a few lines of Events and actions just to figure it out.

    Also in the event of 100 layers, not only does it take a while, it's also very difficult to manage.

  • Jase00

    If you need to dynamically refer to different instances in different families, with different IIDs on different layers and dynamically change the properties of other such, properties according to layer parallax, andreyin's method just doesn't cut it.

    One of the reasons being that you can't really connect that pre-set variable neither to the layer nor the objects in it as values.

    Example:

    Sprite.LayerNumber instantly gets you a layer number.

    Set Layer Parallax(Sprite2.LayerNumber) to Layer(Sprite1.LayerNumber).ParallaxX,    would instantly set the Parallax of one Sprite to that of another.

    With your method you first have to check which layer the first Sprite is on it is, and then match the layer number to the variable that contains the layer's parallax(more complicated than it sounds), then set Sprite2's Layer's parallax to that.

    If you do this all the time eventually you just lose track of the whole process.

    It just gets too complicated and gimmicky.

  • andreyin That depends on what you're trying to do. For what I'm making I need to retrieve the Parallax value during the course of the game.

    Ashley

    layer.parallaxX

    layer.parallaxY

    Both are Layer Properties available to the SDK here but aren't implemented inside Construct 2 itself. Can these be implemented somewhere down the road?

  • Hi,

    Is there any expression that refers to the layers parallax?

    For storing a Layer's Parallax values in a variable?

  • The only instant solution i've found so far is making pre-placed "spawn boxes" within which the objects are allowed to spawn.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Pretty nice idea.

    Tho with a bigger Check it can take up to 10-15 seconds to place 10 objects apart with the method you're suggesting. And I need it to happen instantly on Layout Start.

    Also if the number of objects makes it impossible to place them all in a way that they don't overlap - it just keeps looping forever.

  • You have Sprite1.

    How would you spawn 10 instaces of Sprite 1 at random coordinates, with at least 100px distance between all of them?

    Been trying to figure it out all night but no results so far.

  • Oh damn, so another Ouya coming up. This is good news for developers.

    Hopefully with the Amazon brand, it will fair well quickly. 8D

    How does the Amazon brand help sell a gaming console?

    It's like saying Adidas are releasing a gaming console. Like....what?

    Also it's not like Amazon users are avid gamers. Most normal people still consider buying games a complete waste of money.

  • Fmistakes - Could be your keyboard just doesn't support Arrows + Numpad toches at the same time? : P

Xionor's avatar

Xionor

Member since 16 May, 2013

None one is following Xionor yet!

Trophy Case

  • 11-Year Club
  • Email Verified

Progress

12/44
How to earn trophies