Freddy33's Forum Posts

  • Ahh yes. Thank you. I don't think I done this!

    Ta bud

  • None of them. The global variable is set to 0. But I have not but the gv in any events apart from the ones above.

    Cheers plinkie

  • You do not have permission to view this post

  • Hello,

    I have 5 layouts (each a different level) When the player collects a dimond on the first level it updates. However when the player completes the level and gos to the second ayout, the diamonds reset to 0?

    Unable to find out why, played around with save states, but to no avail. Any ideas?

    Thanks

  • Ha, no problem man. I feel your pain. Ai is tough. I know the basics but will be delving into it this week for my boss.

    If I find anything particularly usefull I will let you know. But I feel this is gonna be a struggle.

    Bloody ai!

    I'm sure a veteran will step in to help :-)

  • Jesus dude, I thought you said you are a begginer lol. You seem to know exactly what you are doing. You are prob on par or know more than me.

    However, it seems like an issue with the animation. Have you tried to set animation frame?, or self. Animinationframecount+1?

    I always use instance variables on all my animations, but you have quite a lot going on here buddy and to be honest I think this may be a little above me. So sorry.

  • I tried to link one, but failed...

    How do I do that XD

    Thanks

  • Take a screenshot of the events.

    Like this... Done on my phone

    Also do one of the layout and let me know what behaviours you have assigned :-)

  • Hi, I may be able to help with the food thing. Be handy to have a screenshot of your events though.

    "Try setting the animation speed to 0.

    Or make your tile map solid.

    Or take physics off if it's a behavior on the food.

    It does sound like an animation thing though. Post a capx. I probably can help.

    With the movement thing, I play about with the platform settings to make it more fluid. But I'm guessing you know about this?

    Hope this helps 😏

  • Thanks Mike. All sorted now. Sometimes it's difficult to know where to add events. Getting easier though :-)

  • Bloody maths man!! I actually went out and got myself a maths book!, I have been playing about with cos and stuff. Going to practice till I get it down :-).

    You have both been a great to me. I am 6 levels into my first (first of three failed games before). I am happy with the way the game is going and both of you, pinkie, maverick and some other dudes have been instrumental in providing me knowledge.

    A few games and I really want to create something really polished and epic. Until then you may keep seeing questions😜

    Thanks all

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thanks Plinkie, that makes sense. I get a bit confused when using a new event or parameter. The floor thing I learnt today so not sure if that was having any kind of impact.

    Quite handy though, I think I might try and play about with this and add a bullet behavior so they explode outwards and fall to floor.

    Cheers for the help!:-)

  • 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?

  • 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