LittleStain's Forum Posts

  • Well your second screenshot is completely different from your first..

    Events are missing that were there before, there is no consistency..

    I've never used the facebook plugin, but luckily I can read the manual..

    first you should check if the facebook object is ready

    on ready set the icon to login active and visible

    on icon pressed, request login

    on logged in - you can add actions

    but it seems as if at that moment username is not yet available, so there's the

    on username available condition

    The whole plugin is asynchronous, so things can only be done after requests have ben answered, that's why there's so many "on" conditions, some of the features are only available when these are triggered ..

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Because I'm not afraid to ask stupid questions:

    Are you able to get it to work as a website?

    If so, you only have issues with xdk, if not there are other issues to solve first..

  • Wouldn´t it be the same as calling a function with the UID as a parameter? My biggest doubt right now is about family identification, I don´t know if the same UID would work for identifying an object in different families...

    UID = unique, so when referencing an object by uid there is absolutely no doubt which object you mean..

  • Another way would work with the clamp expression

    System every tick

    head set angle :clamp(angle(head.x,head.y,mouse.x,mouse.y), body.angle-45, body.angle+45)

    Problems that could arise are that sometimes the expression(s) return negative angles..

    If this is the case and it messes up the actions, adding 360 when values are negative should solve this..

  • I guess you could use the system is between angles condition..

    I would use the body angle to compare with, in this case..

    so that would be something like this:

    angle(head.x,head.y,mouse.x,mouse.y is between body.angle-45 ; body.angle+45

    head rotate 1 degrees towards angle(head.x,head.y,mouse.x,mouse.y

    else

    head rotate 1 degrees towards body.angle

  • How do I implement this? how does this pick?

    I'm not sure what you mean..

    This is a condition/event of the system..

    add event/condition, choose system, choose pick by comparison..

  • First thing I see in the manual, is that you should check if the plugin is ready to be used..

    I don't see this in your event-sheet..

    Also it seems strange to me that you request a highscore from facebook, only to publish it to facebook the moment you get it, but maybe that's just me..

  • The example uses webstorage?

    What example?

    You can't be talking about the capx attached to the local-storage tutorial, for it ,ofcourse, uses local-storage..

    you just need this:

    on start of layout

    localstorage check item "highscore" exists

    localstorage "highscore" exists

    system set global variable Highscore to localstorage.itemvalue

    on game ended (you should know which triggered event you could use for this in your capx)

    System compare two values : Score < Highscore

    localstorage set item "highscore" = Score

    The tutorials explain this much better and in greater detail..

  • you mean something like:

    system pick tower where distance(tower.x,tower.y,enemy.x,enemy.y) < 100

  • system pick tower by comparison: tower_1.select = 1

  • Ok, so the tiled-background option should work..

  • Could you give a better explanation of what it is you are trying to achieve?

  • That is a completely different question..

    One way might be using a single tiled-background-object for all the borders and keeping the object overlapping that..

    I can think of other ways using multiple imagepoints

    Really depends on what you are aiming to do..

    circle dragging is actually pretty easy as is dragging at the edges of squares..

  • Well you are disabling bullet behaviour when overlapping ground and the one on the left is overlapping the ground..

  • It would help to know what event/conditions you are using..