insanesnake's Recent Forum Activity

  • Thanks dop2000, but I knew I forgot to mention something.

    My paddle is moving 360 around the play area. So I can't use X to calculate the angle. the bullet bounce of solids doesn't really work for me either.

  • why go to all caps if you just wanna revert it later?

  • I made a little pong game for fun. I currently set the balls angle using

    angle(Paddle.X ,Paddle.Y,Self.X,Self.Y)

    now I want the position where the ball hits the paddle to be effective. But I don't want to ignore the angle of collision which is what this does.

    I tried some things. but didn't work. So how do I do this?

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

  • that fixed it, thanks Nepeo!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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

insanesnake's avatar

insanesnake

Early Adopter

Member since 3 Oct, 2014

None one is following insanesnake yet!

Trophy Case

  • 10-Year Club
  • RTFM Read the fabulous manual
  • Email Verified

Progress

12/44
How to earn trophies