stuatk's Recent Forum Activity

  • thanks for taking the time to reply. I'm adjusting the way I work to take into account there is no 'prefab' version of a sprite...

  • Has anyone found a way to reset the data stored by the persistent behavior - seems like such a waste that this great behavior exists but there way to reset it.

    Does anyone know if this has been reported, any Ashley is aware of the oversight??

    Is browser reload the official way we're suppose to clear it?

    Thanks.

  • Right.

    So, it this right: The very first instance of a sprite placed in ANY layout acts as a storage for my default settings?

    so if I have a layout called "myObjects" and when ever I create a new sprite I should place here first, so if I want to adjust my 'default values' of the physics behavior, I go back and always adjust this one? So sprite(0) always stores the default values for behaviors???

    This is my thinking.

  • Please help, I'm super confused about how I go about changing the 'original' sprite.

    I'm a very experienced developer coming here from Unity , I have a very good understanding of classes, instances, inheritance... etc) I've worked in the industry for over 20 yrs - I was the lead animator/designer on Tomb Raider II... just to give you an idea of my experience....

    I love Construct 2, all ready got a fully working version of 'Jet Pac' done..... But I'm VERY CONFUSED about this:

    create new blank project.

    create new sprite. (right click in project view)

    drop sprite in layout.

    Add physics behavior.

    change density to 100.

    delete sprite.

    -- now... later on I want to put the sprite back again...

    drag sprite from project view to layout.

    select sprite in layout.

    -- now the physics density is set back to 1... not 100.

    So if I had set up all the physics values to be just right, got my object working just right.... then all instances were deleted for now.... and I put the sprite back later on.... BANG! All my values are back to the default values. As far as I can tell this happens with all behaviors....

    So how do you go about 'storing' your own default setup? - I maybe super confused coming from Unity (I'm kind of expecting it to work like prefabs).

    Am I expected to set the values back up for and sprite that has had all it's instances deleted??? Surely my default values should appear in the properties bar when I select the sprite in the project view...... but when you select a sprite in the project view it selects all the instances of it in the layout view??? Is there no such thing as 'my default settings'??

    Oh... I'm probably wasting my time writing this... there's something really nice about Construct... but the fundamental approach is starting to feel a bit flawed....

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • turns out to be a different problem - if the player is holding down a direction control key when the layout is changed, the physics system seems to detect this before the event has chance to place the sprite in the start location - making the sprite sometimes appear in the wrong location.

    Solution - for about 0.3 of a second disable player input when layout starts.

    Seems like a hack to me. But it works. For now.

  • I assumed something that I expected the engine would do... any advice or opinions would be great.

    I'm a seasoned Unity user and expected the following:

    When using the On Start Of Layout condition I would expect it would not be fired off until ALL instances in the scene were created first... an example:

    I have a player sprite and two other sprites in the layout - one called "start_position_A" and the other "start_position_B"

    I have an event sheet which contains the "On Start Of Layout" condition.

    When "On Start Of Layout" is triggered there is a global variable test, depending on the outcome it either chooses

    "start_position_A" or "start_position_B" - and uses the position coords to place the player.

    when testing sometimes it worked, sometimes it didnt. Thats because sometimes the instance being referenced existed and sometimes it didn't. I added a wait 3 seconds action - it worked EVERY time, because by then the instances existed.....

    So, does anyone else think that "on start of layout" should not be fired off until ALL instances have been created in the layout?

stuatk's avatar

stuatk

Member since 11 Dec, 2012

None one is following stuatk yet!

Trophy Case

  • 11-Year Club
  • RTFM Read the fabulous manual
  • Great Comment One of your comments gets 3 upvotes
  • Email Verified

Progress

14/44
How to earn trophies