mOOnpunk's Forum Posts

  • I generally put all my code into various functions, then just call the functions when needed.

    This has the same effect but also helps a great deal in organising and debugging the game.

    It also means my main game loop is very readable since its just a list of functions.

  • It a shame that construct 3 can't have these sorts of ui plugins as standard. If one person could do it then why can't the dev team? Ashley

  • clicking page numbers doesn't work for me.

  • Functions are now built in, and parameters are handled as local variables.

  • Sorry i can't check your file at the moment, but perhaps the inventory layer needs to be set to 2d render and not 3d?

    Also you can you mouse.x("layer name") to get the coordinates of a specific layer, as they will be different between 2d and 3d.

  • Do you mean opposite angle?

    ((180+angle)%360)

  • I feel your frustration, ignore the most requested features, work on Construct Animate instead, which we subsidise, and no one asked for.

  • You would use it like this.

    Normally you could do;

    My_string=""

    My_tokens = "A,B,C,C"

    If condition met then set string My_string to tokenat(My_tokens,0,",").

    My_string = "A"

    settokenat() and changetokenat() would work the same, but on the token string itself.

    If condition met then set string My_tokens settokenat(My_token, 0,",","Z").

    My_tokens = "Z,B,C,C"

    If condition met then set string My_tokens changetokenat(My_token,"C",",","X").

    My_tokens = "Z,B,X,X"

  • You're right. It would be much more helpful for these types to be applied to tokens instead.

    Tokenat() we already have but,

    settokenat(string, index,seperator, new token)

    and

    changetokenat(string, matching tokens, separator)

    would be very useful.

    Thanks.

  • Ashley

    You added chooseindex(1, "foo", "bar", "baz"), which is a great addition, would it also be possible to add

    setindex()

    Maybe setindex(index, new value)

    setindex(1,"yay")

    ("foo","yay","baz")

    Also changeindex()

    changeindex("foo", "yay")

    ("yay","bar","baz")

    It would complete the feature set.

    Thanks

  • You seem to be focusing on features though because they apply to both. When are you going to do some Construct only game related features, not just time line stuff?

  • One of the problems is that any changes they make has to make sense to both the CA and C3 environments, otherwise they can't keep their promise of C3 benefiting from CA's development.

  • variable 1 (string) = "255,50,100"

    Selection = 1 > spritefonte1 set color rgb(tokenat(variable 1, 0, ","),tokenat(variable 1, 1, ","),tokenat(variable 1, 2, ","))

    etc.

    The rgb values are stored as tokens in a string, separated by ",".

    Rather than setting the colour to rgb(255,50,100) or whatever it is, then we get token 0 = 255, token 1 = 50, token 2 = 100.

  • rbgex() uses 0 to 100, you need to use rgb() which supports 0 - 255.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • They're not doubling their workload because they are not outputting twice the amount of updates.

    Their focus has simply shifted from C3 to CA.