Alyra Games's Recent Forum Activity

  • The every tick is under system. You want the pacman to always move, so you will need every tick. I think you don't need a boolean.

    If the user hits a key you can change the direction pacman is facing and/or moving. You can either use a variable for this and ask if this variable is 1, 2, 3 or 4 (for each direction). You can also safe "left", "right", "up", "down" instead in this variable. Or you can just change the direction pacman is facing and ask which direction he is looking.

  • Thank you all for your replies!

    I have an idea but i don't know if I'm right:

    if random <= X1 - chane 1 occurs

    if random > X1 and <= X1+X2 - chance 2 occurs

    if random > X1+X2 and <= X1+X2+X3 - chance 3 occurs

    if random > X1+X2+X3 - nothing occurs

    Is this right? Does this keep the right % chances?

  • Okay. I will test out its limitations.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thanks for clearing this up. I'll find a way around this.

  • Oh ok. Good to know.

    Thank you for your effort.

  • Hello.

    I use an 2D array to store probabilities.

    Lets say the first Y row represents the chances a character has to die from several death causes.

    X1 is the chance to die from hearth attacks. X2 is the chance to starve. X3 the chance from being hit by an asteroid.

    I now have to check which of the probabilities do occur... or maybe non of them occur.

    How can I now check by which cause the character dies (if he even dies)? I need to put these probabilities in If conditions depending on each other.

    Lets assume X1=35% , X2=60%, X3=80%.

    Do I have to sum each probabilities?

    100%-35%=65%

    100%-60%=40%

    100%-80%=20%

    175% / 125% chance to die.

    Thanks in advance!

    I hope you know what I mean. It is hard to describe.

  • Every tick:

    if pacman is facing up - set pacman Y position to pacman.Y-1

    if pacman is facing down - set pacman Y position to pacman.Y+1

    if pacman is facing left - set pacman X position to pacman.Y-1

    if pacman is facing right - set pacman X position to pacman.Y+1

    But I have not tested it. You also have to check if there are obstacles in the way before pacman moves.

    You best use a 2D array. In that array every X value represents a day and every Y value the month.

  • Button/Sprite - on push

    • if doublejump is 0 - set doublejump to 30
    • else "perform doublejump (insert your doublejump code here)"

    Every step

    Substract from doublejump variable 1*dt

    With this code the user has 30 frames (or 0.5 Seconds) time to perform a double jump by tapping the button/sprite again.

    Okay you never had a girlfriend, right? Otherwise you'd know that a woman does not forget when she has her period. At least I don't know a single woman who does not know about this.

  • You can create the wrap effect manually. If an object leaves the layout set its x and y to the opposite of the layout where it leaved it.

  • This is easy. Try this:

    system condition: "Pick random instance" (bush)

    Chao command: "set position to another object" (bush)

    Than you only need to add the move to object command.

Alyra Games's avatar

Alyra Games

Member since 13 Feb, 2014

None one is following Alyra Games yet!

Trophy Case

  • 10-Year Club
  • Email Verified

Progress

11/44
How to earn trophies