Je Fawk's Forum Posts

  • While I did not download the zip file, I really did not understand what's this about. Is it a game made in Construct 2? Is it made in something else? The title is quite confusing

  • I have tested an event sheet with 500 On start of layout that were adding numbers. The conclusion was that all the events triggered correctly but I cannot say in which order.

  • Thanks for the info

    I shall try a few tests and come back here with the results.

  • Greetings

    I am wondering if there is any limitation on using the "On start of layout" trigger. Does it depend on the device? Do they trigger in the event sheet order (top On start of layout first and subsequent ones down the path?)

    Is it bad practice to use more than one? I would expect so, as from c# programming for example having more than one Window Load event is not a good idea. However I am interested to know if there would be any problems as my project would be much better organized if I could use more of said triggers.

    Thank you for your time reading this

  • Oh this was for Construct 1! Oh damn, sorry, my bad. Thanks anyway chrisbrobs !

  • Link to file-

    https://dl.dropboxusercontent.com/u/22173473/AdvancedColour.cap

    It's a .cap file :S not capx hmmm

  • Yep. Gief capx :F

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thank you for the details

  • Thank you very much LittleStain !

    If the event sheet would be more complex, would the wait need actually more time? Like wait 0.5 seconds?

    I still don't understand why without the wait it doesn't work. The way I see it is that the object is getting created, then the engine jumps to the on created event which pins it. I really don't see how the engine doesn't do what it looks to be something really simple and basic.

  • Greetings everyone

    I got a pin behavior which initially was in the same block where I created the sprites. Now I wanted to organize my project better so I created some "On Created" events in which I added the pin behavior too. This did not work. I do not understand why it did not pick the correct instance to pin the sprite to.

    I've attached a capx showing my problem.

    Is this a bug of the game engine? Am I not fully understanding how On Created event works?

    Please take a look and tell me if you can spare 5 minutes. In the event sheet you will find 2 comments telling you how to replicate the bug.

    Download capx: http://www.jefawk.com/games/PinProblem/PinProblem.zip

    Thanks for your time

  • I'll take your word for it for the moment Ashley

    If I had enough time I would have tried to see if there's any performance gain/loss on a crappy device I got.

    Thanks

  • Greetings

    I have a project with a lot of different sprites. I'm making a point and click adventure game. The estimated number of interactable objects is around 500-1000.

    Now my question for debate would be regarding Families and how they affect performance.

    I would like to use several families, all holding the all the objects.

    One family for the localized description, let's say "ObjectsDescriptionFamily" which would hold instance variables of the sort "ObjectsDescriptionFamily_EN" , "ObjectsDescriptionFamily_FR", etc, for all the languages that my game will support.

    Then I would have a family with the object's positions, like InitialPos_X, InitialPos_Y, CurrentPos_X, CurrentPos_Y, etc

    And the list would continue.

    What would be the performance difference between using let's say 5 families holding all the objects but certain instance variables each rather than 1 family holding all the objects with all the instance variables?

    Would the game perform better if I would drastically reduce the number of instance variables and replace them with global variables?

    Like instead of having Object_0001.ObjectsDescriptionFamily_EN = "description string" I would have it pointing to Object_0001Desc_EN_globalVariable, and this variable would hold "description string". The global variable part would help with organizing the project much better.

    I'm eagerly awaiting your thoughts on these 2 matters: 5 families vs 1 and family vs global variable

    Cheerio!

  • Thank you very much LittleStain

    I'll be using pick top/bottom

  • Greetings

    I have 2 overlapping square sprites. They overlap only in a corner.

    I also got an click or on touched object event. This event fires for both of the sprites if I click in the corner even though, in my opinion it should fire for the sprite on top.

    Thanks anticipated.

  • I figured out a quite complex solution if anyone has this same problem again.

    You make a family with all the overlapping items and you assign it an instance variable say OverlappingNumber.

    Every 0.1 seconds (less or more, you decide based on the resources available) you set the whole family's OverlappingNumber = 0

    Then under Every 0.1 seconds you add this event: for each family member you check if the family is overlapping with Sprite1, then in another event, Sprite2, and so on you write a huge bloody list for every sprite that you want this specific overlapping fix to add to. If it is overlapping you do Sprite1.OverlappingNumber + 1.

    After that it's just a matter of testing if the overlapping number is less or equal than 1 when things overlap.