Skip to content

Wrong order of oncreate events #34

@Banbury

Description

@Banbury

Describe the bug
The oncreate event of a copy is called before the oncreate event of the room. According to the documentation it should be the other way round

To Reproduce
Steps to reproduce the behavior:

  1. Create a game with Catnip
  2. Create a room
  3. Add a 'Room start' event
  4. Add a "Log to console" block with the parameter 'room'
  5. Create a sprite template
  6. Add a 'Creation' event
  7. Add a "Log to console" block with the parameter 'copy'
  8. Place a copy of the template in the room
  9. Launch the game
  10. The debug console shows 'copy' and then 'room'

Expected behavior
The output should be 'room' and then 'copy'.

System information report
Ct.js v5.2.1 😽 (packaged)

NW.JS v0.72.0
Chromium v109.0.5414.87
Node.js v19.3.0
Pixi.js v7.3.2

WebGL available
WebGL vendor Google Inc. (NVIDIA)
WebGL renderer ANGLE (NVIDIA, NVIDIA GeForce RTX 3060 Direct3D11 vs_5_0 ps_5_0, D3D11)
OS win32 x64 // Windows_NT 10.0.22621

Metadata

Metadata

Assignees

No one assigned

    Labels

    scope:docsImprovements or additions to documentationtype:bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions