vtrix's Forum Posts

  • my initial problem is fixed, the height of the text was somehow hiding my text, and made me think it was behind the object,

  • anyway, this is related to objects that are only available on top level event, well, objects can still be repicked by uid by running it thru a function, at the same event of creation, so i want my setup of my objects to be done all in my creation function

    the function creates an object and a text object, but somehow my text thats created after (eventorder) my object gets behind my object

    so now im looking for a way thru uid picking to set this textobject behind my object, i have both uid's of the objects

    so best way would be pick thisobject.uid , add thistext.uid to the list and set text on top of object

  • De4uman

    problem with that is you have to specify wich objecttype your targetting, so most likely will not work

    does that normally work?, using "&" say you want to pick sprite by uid, can you multiselect instances with the "&" ? , i never used that..

  • if you do a pick by uid the one object, and then pick the other, only one is picked, is this correct?

    i would like to have just two objects picked by uid combined in the selected object list

    the objects are different objecttypes, like one is sprite other is spritefont

    i cant use a filtermethod with variables, because the objects are just created

    anyone can help?

  • Vaann, just an idea, it could be that you need to clear the cache of chrome, the initial serversettings may yet be active,

    about facebook, not sure, maybe its something to do with the https, secure url settings, maybe theres some dev docs about it?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • not sure what you're trying to do, if you just want the sprite to follow the mouse

    on left mouse down,

    set sprite position to x = mouse.x and y = mouse.y

    using arrays would only be needed if you want to record the mouse movement

  • crossdomain security issue? it would probably work if you take the image from source on your own domain. if you upload your project, you could add a folder with images you want to load, these should work.

    Vaann , is the url of the images thesame a where your project is uploaded?

    edit: there's more on the subject from ajax plugin

    https://www.scirra.com/manual/107/ajax

  • i find this a clear way to reduce per tick checks, system compare tickcount%2 = 0 (check every 2 ticks, will reduce collisionchecks by half !)

    you can go higher, but you need to make sure your object collision still get registered (depends on speed and size of your objects)

    i actually would advise everyone to do this, as a per tick collision check is way to much

  • these functions doesn't exist for indexedDB, you probably can check them tho in javascript console under rescources, , other than that maybe do a feature request

  • the problem is when you stop moving, the angle always return to 0, because there is no difference between box and touch coordinates

    you will need some check to only set angle when you are actualy dragging the box

  • ok it not saved in webstorage,

    you can read more about the options you have, here

    https://www.scirra.com/tutorials/526/how-to-make-savegames

  • the save system uses webstorage plugin, so you can check for the local key

    local key "save key" exist, and action : clear local key

    ps: not checked but i think its in this direction

  • what are you doing with the boxes when drag is on? are you changing angles? are you using drag and drop behavior? it like something is resetting the objects angle..

    any modification that is not in the physics sense, can make physic-objects react irregular, but maybe just setting x and y to mouse could work

    edit: its probably more a question of how are you setting the angle of the object, i think your youtube example is using a complete physic solution to drag the boxes, you could get the angle of motion, and try to turn the object in that direction with physics

  • dont forget copying families and object vars, its a vital point of the copying process, actually it would make more sense to copy eventsheet or part of evensheets because if has reference to everything that is used or what is needed to run these events, so these should al be included.