[r197] Created object is outside layout instead of inside

0 favourites
  • 3 posts
From the Asset Store
This is a single chapter from the "Construct Starter Kit Collection". It is the Student Workbook for its Workshop.
  • Problem Description

    I try to create object inside layout with random position using



    but generated number is inside layout, object is generated outside, for example, width is 1700, generated X is 1200, and object is drawn outside.

    What is interesting, with older version I don't have that problem, also it looks like when loading old capx, with similar code, unchanged, doesn't reproduce same behaviour in 197

    Attach a Capx

    --> in attachment

    Description of Capx

    Single layout game, there is player (baloon), obstacles, and gems

    on the start it should generate 5 objects on random positions. I have kept simple game mechanics, disable death on obstacel, but kept death on border, changed window size to match layout size for easier visual demonstration. I tried to translate everything relevant to problem for easier understanding.

    On the side note, Layer Rename, doesn't rename references in EventSheet

    Steps to Reproduce Bug

    • Just start layout and 5 gems should appear within layout on random positions
    • On game over (baloon fell down) it should generate new set of objects, 2-3 tries should be enough to reproduce

    Observed Result

    Depending on random function, less then 5 objects appear

    Expected Result

    All objects should appear within layout

    Operating System and Service Pack

    win 7 sp1

    Construct 2 Version ID


  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Sorry, my error, looks like I've changed Image Point to something far away.

    I panicked, I have simple demostration of C2 in few hours.

  • Closing as not a bug

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)