Bioniclekolacz's Recent Forum Activity

  • Sure

    drive.google.com/open

  • In hopes to keep enemies from forming an enemy herd (2+ enemies in the same spot) I'm testing if its overlapping at offset, and moving it accordingly, except, on some of them it's going the wrong direction for where it's overlapping, I believe this is because the action isn't targeting the right instance, or both, and I'm not sure how to Fix it.

    Here's what I have for one of the directions (I have all four but it would be pointless to post all 4)

    Enemy is overlapping Enemy>>

    Enemy is overlapping Enemy at offset(0,-17)>>

    --Enemy [8D movement] set Vector Y (+40)

    I want to set the vector of the Bold enemy, but I think it is targeting the one that is Bold AND the one that is underlined, OR it's just targeting the underlined one.

    Please help me figure out how to target the Bold enemy's Vector.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • #2 and #3 are resolved>> I added the obstacles to an Obstacles to the enemy On Enemy Created>

    and changed the cell border to -1, and changed the size of the Enemy hitbox.

    I still haven't found a solution for the first problem. ~~~~~~~~HOWEVER~~~~~~~~~~~ Now I have another problem//wondering. I want to make it so that if they can't find a path to the player, they can at least go to the closest point they can, Just like they do in boxhead. Because the players will be able to place obstacles.

  • I'm trying to make a game with pathfinders similar to the zombies in Boxhead http://www.crazymonkeygames.com/Boxhead-2Play-Rooms.html

    Here's the Capx: https://drive.google.com/open?id=1dxEzNaaI0Jxy4Gm35xrPyAk3T04gKjfL

    So that they are always following you, and even follow to the closest spot when they can't get to you.

    Even if that last part isn't possible, some problems I'm running into are:

    #1 that I don't want the "enemy" sprites (the one with the pathfinder behavior) to overlap eachother, but when I give them the solid behavior or add eachother as obstacles they just run into eachother and then teleport all over the place so they aren't colliding.

    #2 The enemies are not always finding very clear and apparent paths. for testing reasons I have it so that whenever I click it finds the path to the players location and moves along it, and sometimes I have to click repeatedly (click spam) for them to actually go through the path

    #3, this one isn't quite a problem because I worked around it, but when I set the obstacles from solid to custom, and on the start of layout added the Solid sprite to the obstacle map, it wouldn't work, it would go right through.

  • In my game I have an event that subtracts 0.03 from a global variable. I've done it by subtract 0.03 from variable, and add -0.03, and set variable to variable-0.03. Yet everytime it subtracts 0.0200000000000000006. The variable is at 0.33, and on the event that subtracts 0.03 from it sets the variable to 0.30000000000000004 rather than 0.3 I need it to be 0.3 because its supposed to trigger a specific event. Are there any ways to overcome this or round down to the nearest 0.01?

  • I know there is a similar subject in closed reports but the solution is not at all a solution for my problem. Sprites will constantly turn invisible in the editor until they are on or off the screen a little bit, or zoomed way in on. This is making it IMPOSSIBLE to continue making my game. [Sometimes they are even dissapearing in the actual game preview too] Im on release 239 right now, but the problem was the same with the latest construct 2 and earlier ones as well. One post said that the problem was an out of date graphics driver, but I just recently installed the best and latest driver for NVIDIA GeForce Ti 1050. As well as the integrated Intel Driver. But this is a new computer, and the same problem occurred on my last computer.

    This link is to the capx which has only one layout that shows this problem [there are others as well but this is the one that is causing me the most problems]

    drive.google.com/open

    Please help me solve this issue [preferably not by starting over, the capx may seem small but I've been working on this game for over a year]

  • Yep, that's correct if you have only levels from 0 to 9.

    If you want to store multiple values in a single string, I recommend separating them with some symbol and using tokenat() expression.

    For example:

    s="3;10;100;1"

    Set level to tokenat(s, 0, ";")

    Set checkpoint to tokenat(s, 1, ";")

    Set health to tokenat(s, 2, ";")

    Set power to tokenat(s, 3, ";")

    Sweet thank you! I had no idea about that expression, this is very useful. Thank you so much!

  • You can use text expressions find(), mid() to separate values from your string "L3C2H99P40".

    However it would be much easier to use one or several dictionaries.

    For example, write this data to the dictionary:

    Key="A_Level", value=3

    Key="A_Health", value=100

    Key="B_Level", value=7

    Key="B_Health", value=34

    To save it to local storage: LocalStorage set item "SaveGame" to Dictionary.AsJSON

    To load from local storage: LocalStorage on item "SaveGame" get: Dictionary load from JSON LocalStorage.ItemValue

    I've thought about the dictionary, but I would honestly rather do it this way. But for the use of find and mid , could I have an event, "On ItemGet 'A'"-> Set 'Level' to mid(LocalStorage.ItemValue, find(LocalStorage.ItemValue,"L"), 1) ?

  • Hey I'm wondering if there is any way to use arrays or matricies with Local Storage. So I have 3 save accounts, A, B, and C. and each save account has the following, Level, Checkpoint, Health, and Power. My original thought was to, when the game is saved, have Local storage Set Item Account (In other words Set item "A" or "B" or "C" depending on what the global Account Variable is) to "L"&Level&"C"&Checkpoint&"H"&PlayerHealth&"P"&Power . So for example, it may set A = L3C2H99P40 Meaning level 3, checkpoint 2, 99 health, and 40 power. Rather than having each be a different item. BUT the poroblem i run into here, is that once I get the value of A.... I'm not sure how to separate those values, not sure how to use that to set Level=3 and Checkpoint=2 and Health=99 and P=40. I'm hoping that there is some way to perform this using syntax changes, but I'm wondering if anyone can think of anything.

  • Upon opening the capx file, on some layouts objects appear invisible, or not the right size/color until I zoom WAY in on them. This makes it impossible to work with! I can't work with what I can't see. Please help me. I recorded a video showing exactly what is going on.https://drive.google.com/open?id=1FzhzUEarobPd460-43PJEGuV5BZ1GHhL

  • Put object in a family

    I tried, but it made the family a Sprite Font Family, and so it still didnt work.

  • In the conditions for sprite fonts there is no "Overlapping" . I need this because I need something to be triggered as soon as SpriteFont2 is overlapping SpriteFont1. Is there any other way to do this?

Bioniclekolacz's avatar

Bioniclekolacz

Member since 20 Nov, 2014

None one is following Bioniclekolacz yet!

Trophy Case

  • 10-Year Club
  • Email Verified

Progress

11/44
How to earn trophies