Freddy33's Recent Forum Activity

  • Your Y is set to zombie.x instead of zombie.y

    The first set of numbers seems to be spacing, and the second number position?

  • Your Y is set to zombie.x instead of zombie.y

    Yep! that done it lol. Jesus i am such a noob.

    Thanks Plinkie.

    Can I ask though please? what is this Zombie2red.X+floor

    (random

    (300)+100)

    It seems like the 300 scatters the diamonds more and the 100 pushes the diamonds more to the left.

    I just used this for the Y, it spawns the object a little above the ground. Zombie2red.y+floor (random(-10)+-10)

    I don't understand why there is two? (-10)+-10). surley one 0 would have been enough?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • random(0) is 0, so I'm guessing your event spawns 5 gems all in the same position.

    Hi, Nah its not the 0. I have tried every variation of every number and sometimes they spawn at a random place or don't spawn at all. I cant find anything on youtube.

    Its a bit of a weird one. Cheers dop

  • Hello, thanks for any help.

    I have used this event before with a chest and it spawns diamonds around the chest when the chest explodes. However when the zombie dies, I want the zombie to spawn diamonds *5. However the event does not work.

    How can it work for one thing and not the other?

    Thank you

  • Hi Plinkie and haddy.

    Thanks for the help. So when the player collects gems in the first layout and the player kills all the zombies, he moves on to the next level but the gems collected in reset back to 0. Cap attached.

    I have the global variable but its still not working. Thanks

  • (Chest.X + floor(random(20)-10), Chest.Y + floor(random(20)-10))

    sorted! Thank you buddy

  • (Chest.X + floor(random(20)-10), Chest.Y + floor(random(20)-10))

    Thank you very much buddy.

    It does work sort off. It spawns randomly at the chest. However it dosent seem to add to the picked up diamonds. Like if i spawn 5, it might only add 2 or 3. I think maybe because they are overlapping and two diamonds are being counted as one. I will try to figure it out.

    Thank you for the event!

  • Hi black hornet.

    I tried to write random after chest, but it wouldn't let me write in the code. Invalid paremeter on chest or something. Also it only adds one diamond when I collect it, so not sure.

    Thanks man

  • Hello, when the player shoots the chest, I want the chest to spawn 5 diamonds at a random point around the chest.I have tried a few things with no result.

    Any ideas on what even I should use please?

    Thanks for the help. Here is the cap, at the moment it only spawns 1 diamond.

  • Hello, the player will pick up dimonds in the first layout, but when the second layout loads the diamonds disappear (reset to 0)

    Do i have to use some sort of save state/? no idea.

    Thank you

Freddy33's avatar

Freddy33

Member since 7 Aug, 2018

None one is following Freddy33 yet!

Trophy Case

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

Progress

9/44
How to earn trophies