Psynaptik's Recent Forum Activity

  • Wonderful, thanks for that! I have another page to search now!

  • I did try that, thinking that would be the obvious answer, but I couldn't find it.

    Did a search in the page for 'family' and can't find anything.

    Am I searching the right page?

    construct.net/en/make-games/manuals/construct-3/system-reference/system-expressions

  • Thanks, I'll try that out when I get chance.

    I tried a search in the manual to find that expression to see if there's somewhere to look before posting to forums next time, but I can't find it.

    How could I have known about this expression?

  • I have some generators that I want to be chosen at random to spawn some objects.

    i.e. choose 2/5 of (generator) and spawn (object).

    There are a few 'pairs' of these, so I don't really want to rewrite the function several times (and it's bad 'coding').

    How can I use params to pass in object names for those two variables in C3?

    I suppose I use the string param type, but I can't quite work out how to access it for something like 'pick random instance', where you'd usually select a sprite, for e.g.

  • Thanks for the quick reply.

    I think for this instance, I'll just have to duplicate events.

    Not surprised you can do it in scripting/js. I knew I could do it in Unity and c#!

    Glad I didn't spend too much more time on the impossible!

  • I have two sets of objects/variables:

    berry

    berryGen

    berryGenNo (a variable)

    carrot

    carrotGen

    carrotGenNo (a variable)

    I thought I could write a function with 1 parameter for the 'fruit', and then be able to say, for instance,

    for 1 to fruitGenNo

    Pick a fruitGen

    Spawn a fruit

    But I can't seem to make the compound show up as a variable. Using fruit&GenNo or fruit&Gen doesn't work.

    Am I trying to do the impossible? This seemed to be a good use of functions.

  • God damn. I knew it was fricking obvious!

    Thanks blackhornet!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hi there,

    I have this:

    - Press a button

    -- Is the boolean true?

    --- Do a thing

    --- Make boolean false

    -- Is the boolean false?

    --- Do a thing

    --- Make Boolean true.

    Now, of course, the boolean switch in one will feed through to the next part of the condition, meaning that both parts always get executed (even if the order is reversed).

    In C# and similar you'd use 'return' or similar to just exit the if statement.

    How do I get round this in C3? I know it's simple, but I've been bashing my head against a brick wall for ages now trying to solve it.

    I also tried childing/unchilding objects, but this didn't work either.

  • You're going to need to be a LOT more specific to get an answer.

    e.g....

    What do you mean by a fighting game? (people have different definitions)

    Where are the inputs already?

    What have you made it in already?

    What are 'the things'?

    What is 'connection of inputs'?

    Do you basically want to make a game without doing any coding? In which case, you can't.

  • When you make a new sprite it's always 250x250.

    How do I change this so it doesn't need resizing every time?

  • Two options:

    1) Do a while loop, and using the ColorFX plugin (in effects), reduce the 'r' value' and increase whatever other value you need to increase to get the yellow value you want. Use a speed multiplier so you can control how fast this goes.

    2) You might be able to use the new Tween behaviour. I haven't used it yet, so can't comment, but my understanding is that you can use Tween to animate any value, not just visual stuff. It'll change a value from a to b over time.

  • Sorting and reversing works absolutely fine in X axis (e.g. scores in 0 row, names in row 1, sort/reverse by X and print out as high score table).

    Why can't you list scores and names vertically (i.e. scores in 0 column, names in column 2, sort/reverse by Y then print out)?

    When you reformat the data and trying using the Y axis it goes VERY wrong. The first column will sort but all the other columns will not sort accordingly.

Psynaptik's avatar

Psynaptik

Early Adopter

Member since 7 Nov, 2013

Twitter
Psynaptik has 1 followers

Trophy Case

  • 11-Year Club
  • Forum Contributor Made 100 posts in the forums
  • RTFM Read the fabulous manual
  • Email Verified

Progress

14/44
How to earn trophies