Dizshok's Forum Posts

  • 13 posts
  • I can't think of a reason for comparing a function call like that..

    If (Function.Call("playerInventory","getPlayerGoldAMount") >= Function.Call("shopManager","getPriceOfItemInGold")) { give player Item take player's gold }

  • Hello!

    I've been using "Function" plugin in Construct 2 for a week.

    I like how it helps crating easy to use, but powerfull logic stacks.

    But more functions i create, more hardly it becomes to remember names of every one of them.

    I noticed, what when i use "Add action > Call function" there is a helping pop-up list of all functions my project has.

    But when i use "Function.Call("")" in not related to "Add action > Call function" parameter's text-box, there is no such a list for some reason.

    So, my question is:

    How to spellcheck Function's and it's pararmeters names in Construct 2?

    P.S.:

    Before creating topic, I've tried to google my question, but seems like nobody besides me got problem like this (or i just can't properly using Google >.> )

  • You need to use a loop to do this -- specifically, loop through the height of the array and set each element in the desired column sequentially. Here's an example.

    Thanks!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Create variable "ID" for Player object and change it to make difference between two same objects.

  • Hi. How to fill array row on x0,yALL with value = 1 ? Think this is about expressions, but didn't get it a little bit.

  • Hello, how can i do the roll or dash move with bullet behavior object in Construct 2?

    Here i have my little prototype with simple double-click character teleporting to cordinates of mouse

    How it works:

    My "solution" allows to jump through walls & etc, and this is problem, so:

    How to do the non-cheating and more smoothly moving of character to the mouse coordinates on double-click?

    (Like roll in HotlineMiami2 or something like this)

  • On Left button clicked...set WaponChanse to int(random(1,11))

    WaponChanse is less than 5......spawn Pencil

    else...Rubber

    if you insist on logical

    and & ; or |

    capx> 1=True:0=False

    Omg, dude, thank you!

  • Hi.

    How can i do choise from range of values in C2?

    Logic is:

    Random number choosen from 1 to 10

    Then if it was a number from 1 to 4 - spawn object A, if 5 to 10 - spawn object B.

    Here what i do:

    But that didn't work well enought

    Sometimes it spawn 2 objects in one place, but just in one cell, sometimes it didn't spawn anything at all, but logically should. I think all this problems because of my method of value choosing from range, so, is it possible to do it in another way and how?

  • Mate, would you mind giving an update on your games progress at some point? as i said earlier, my game is rather identical to yours and would love to see what you come up with.

    Good luck!

    Thx, dude! I made some progress posts at my twitter already, but nothing special. And yeah, I think, that's good idea to start dev-blog or something in future. Is there any possibility to add friends at Scirra forum? If yes, will add u, man

  • ..like this?

    capx:

    Yeah! Thank you!

  • Hi. I continue developing my top-down-shooter game, and again have some problem, which i don't know how to solve.

    I try to make granade throwing to mouse cursor place, but in my decision this didn't work.

    I do this:

    But find out that this didn't work well, when Player near to (0,0), granade flying time too small, when he moving away => time of flying getting grow

    So, goal is, when granade flying to cursor position and then get it - destroy.

    How can i do this?

    P.S.: Also i try to find solution on "tds-demo" in C2, but didn't get it almost at all, to be honest.

  • This topic has a few ideas

    Wow, thank you, dude! That's exactly what I need!

  • Hi there. I'm making top-down shooter and have some trouble with enemies in there. They stacks in each other and after became looking like only one.

    So now, enemies logic is like this:

    Bullet behavior + every tick set angle toward to Player pos.

    I tried to fix this in 2 ways:

    1) Do this stuff

    But this works pretty bad and laggy

    2) And this

    But this decision ruins game at all, because player sometimes get trapped in over9000 enemies without possibility to get out.

    Both of them did not work well and i have no idea what i should do to solve this problem, at all. Request your assistance, guys.

    So, how can i make the enemies did not stacks in each other?

  • 13 posts