insanesnake's Forum Posts

  • good call. it was necessary in an older build but useless now. as it is always 50 now. thanks for the heads up

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • that fixed it, thanks Nepeo!

  • So I'm having a weird thing happening. in the following code block.

    a little explanation about what this does.

    MapCreate runs after I filled LevelArray with 50 random numbers.

    So as soon as it has created 50 map Icons it should be finished. after which I call location which sets the text to where the player is.

    now this event calls without a problem. but the event after. The for each MapIcon doesn't. but only doesn't the first time I call the function. if I call it after it works fine.

    any idea why this isn't working as intended?

  • this is amazing piranha, a very clear example of how to do this, thanks a lot!

  • Allright. I'm following so far. Does this mean I also can't access the global variables in the event sheet? And if so, what would be the workaround for these cases?

    I understand what you mean, I just haven't a single clue as to how I would do that.

  • That's just the problem. I know that I need to define it before I can assign values. but how do I assign it to this array.

    that's what I'm having trouble with understanding.

  • thanks Ashley,

    the problem is more that my code is probably not making any sense as I do not know how to access other parts. what I'm doing is as following

    function stringSplit(){

    var x = inputString.value.toLowerCase();

    CommandArray = x.split(' ');

    }

    inputstring is a global string. CommandArray is an Array object. and I'm activating this script in block ( which as I just thought of won't even call the code as of now)

    but I might have been looking for answers in the wrong spot, as I was trying to search through the How do I?.. forum

  • Luckily I have actually started using Javascript a couple of months ago. but I'm still an absolute beginner at it. So I have a couple of simple questions.

    What I'm trying to do is clear an array (as the input may have varying lengths), get a string split and put it in said array and then get the arrays length and put it in a global number.

    But what is throwing me for a loop is how to actually access said values and arrays. as they are a global values and an array object. Like I said. total beginner.

    Tagged:

  • I knew I was missing something. thanks dop

  • can't find the answer to this.

    what I need is pretty much set text to string & line break & string.

    bbcode for line break doesn't seem to work.

  • seems I was trying to change the wrong part. multiplying player.x by parallax fixed my issue.

  • I'm using the following events to make a radar.

    now this works fine on objects that aren't on a parallax layer. but it doesn't work on objects that are. So I probably need to change the calculation, but I can't figure out how.

    any ideas?

    Tagged:

  • do the walls have the solid behaviour? also, are you putting the walls in during the game, or just in the layout?

  • AllanR

    this is exactly what I meant. thanks a lot!

  • I'm trying to build a space based top down shooter. and to get the feeling of controlling a spaceship more I would like to delay steering. now without setting the movement angle towards the player angle would be most realistic but lacks a lot of control.

    So I somehow need to delay setting the movement angle of custom movement based on total speed. sort off "drifting" like the car movement has. I've tried some things but nothing has worked so far.

    switching to car movement is not an option.

    So what I'm asking is, how do I build a drift option in custom movement?

    Tagged: