Vanelloppe18's Recent Forum Activity

  • I don't know what do you mean by "random behavior" or "object type"

  • Hello guys,

    all is in the question, how can i coding that an enemy choose randomly between several patterns, example, he have two different attacks and he choose at random between them, i see the expression "choose" but i think i cant use that, i was thinking something like :

    function 1 = first attack pattern

    function 2 = second attack pattern

    anbd expression choose (functiin1, function 2) but the expression choose is just for parameters not function i guess.

    "choose(a, b [, c...])

    Choose one of the given parameters at random. E.g. choose(1, 3, 9, 20) randomly picks one of the four numbers and returns that. This also works with strings, e.g. choose("Hello", "Hi") returns either Hello or Hi. Any number of parameters can be used as long as there are at least two."

    Ty for help.

  • Thank you very much, it is helpfull

  • Hey dude, i tried this game, it is very good, when you plan to the final release?

    Can you share your code for the elevator mechanic?

    Thanks you :)

  • I find the good system for me, thanks

  • i updated the screenshot, its a bad monday for me :D, i guess the instance variable have the original y position of the object? i need to do it in a loop or something to give the feeling its moving slowly? for example in this loop add -2px

  • Hey,

    again a question, sorry im newbie in construct, i tried to move a platform for up to down and form down to up and i used the sine behavior, it's ok but it doesn't do exatly what i want.

    I just want the platform go slowly down for example and stop and i want to, bur i think the sine behavior is not the best way to do that cause it does a cycle and i just want the platform go down, stop when i want, and if the player go again on it, she go up and stop when i want to.

    Here a screenshot of my code but i know it's bad:

    Thanks for help.

  • > You mean the UID can change? I thought the UID was the unic ID of each instance, it's not supposed to change.

    UIDs wont change but they can be assigned by the engine during run-time in different ways,

    during runtime, you can retrieve and use the UID of an object

    but you should never assume that a UID will be a specific value.

    Thank you for the advice, il will remember that :)

  • "I think you cannot depend on UID to always be the same. So you should not use it like that.

    You can select a specific object by Instance variable that you have previously assigned in your code.

    eg on Platform created set instance variable "MyNum" = 7

    then later...

    Pick Platform with instance variable "MyNum" = 7"

    You mean the UID can change? I thought the UID was the unic ID of each instance, it's not supposed to change.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • i just figured out why, i just forgot to include my event sheet in the main event sheet...Sorry i sucked :D

  • I don't have pin behavior, i see it in a post but i don't know really what is the point of this behavior,

    here two screenshot with uid of selected obj, i think my UID is good right?

  • Sorry, it didnt uploaded the screenshot, here the code:

Vanelloppe18's avatar

Vanelloppe18

Member since 14 Jun, 2018

None one is following Vanelloppe18 yet!

Trophy Case

  • 6-Year Club
  • RTFM Read the fabulous manual
  • Email Verified

Progress

8/44
How to earn trophies