vtrix's Recent Forum Activity

  • i just created an example of usage for automatic nickname

    with this you can put all you objects from a family in a list and create from list, without any naming

    in example

    a "for each sort" (sort by object.x )

    put automatic sid to array, make dropdownlist from array

    create object from list

    https://dl.dropboxusercontent.com/u/61666915/objectlist_nickname.capx

  • rexrainbow

    im having trouble with creating nicknamed instances from another layout

    (meaning a layout where i place my objects) previously i put all my objects in first layout, so it wasn't an issue

    but its getting to complex.

    i tested system create object and this works, so my question, is it a plugin limitation or something that could be fixed/added ?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • https://dl.dropboxusercontent.com/u/61666915/collisioncheck.capx

    Didn't see the reply, i did a small test, it still registers after the "collision" happens, i think on collision is just a triggered "is overlapping"

  • Aphrodite

    I think you have 1/2 chances to miss the collision like that, it is more overlapping That'll work like this I think

    i don't think there's a difference, if you only check once per 2 ticks, on collision or is overlapping will have the same result, nothing is checked between ticks, there is certainly more chance to miss the collision in both cases, but in my tests once per 2 ticks is unnoticeable, i have it set even higher, its a tradeoff

  • just like to mention that you can use on collision in a subevent, ashley comfirmed that it does work,

    doing collision check every couple of ticks can be a huge save

    i do this, system compare tickcount%2 = 0 (checks every 2 ticks)

    subevent on collision

    depending on how big and how fast your objects are you can up this number

    something that could be tried to improve on this method (c2 internally)

    having a collision budget, there's a timer that checks how long it takes for collisions to be checked, if more than you budget, it stops the objectloop and continue on the next tick where the loop has ended,

    the way its now if you have more collision checks than you system can handle it drags down the performance just to make sure every object is checked, wich could potentially be spread over more ticks,

    and further i also would like too see if splitting the actual screen in 4 or 8 could improve performance

  • Aphrodite

    yes calling works, but to be usefull, on funtion "string" should take the string of the variable

    this way you can just rename the functions at one place

    not sure how a dictionnary would help... to keep track of my functions?

  • don't now if this is for everyone, but i cant use my tablet/nexus7 to post, the typing is just waaay to slow

  • +1

  • danialgoodwin

    i think it worked with rex function in the early days, i didn't need this because i wasn't using functions alot but now it would be helpfull

    AllanR

    its on function "name" , i want it to be a variable

    so i can rename my funtions more easy

    does that work for you?

  • since when is using a string variable in functions not possible?

    i even tried with constant variable, nopes

    has this been changed maybe?

  • not so easy to explain, if you dont know what is what but

    you need a loop,

    a for loop or repeat,

    repeat 20 times, create txtobject, at 50,50+loopindex*txtobject.height

    and set txtobject.txt to webstorage at key loopindex

    do a search for these things...

  • anyway the function object support recursion, its stated in the manual

    maybe something like

    sum = sum + variable (range within 10)

vtrix's avatar

vtrix

Member since 24 Jul, 2011

None one is following vtrix yet!

Connect with vtrix

Trophy Case

  • 13-Year Club
  • Entrepreneur Sold something in the asset store
  • Email Verified

Progress

15/44
How to earn trophies

Blogs