20Sickness's Recent Forum Activity

  • I'm not really good with multiplayer online so like you I'm trying to learn as I go lol but only fee things I can think of is either you have the default controls set to yes or you need to go into the peer and host events to update something. Other than that... I'm not really sure

  • Yup! Here you go! Even though the video is in Japanese... they still have a file link to download the sample game. It's for c2 but it should give you an idea of how it works

    Subscribe to Construct videos now
  • Well I'm glad I was able to help with both issues! Good luck on your project!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Well unfortunately Arrays isn't something I'm good at haha so I can't help with this part but I did make a tutorial a about spawning stuff randomly so I'm not sure if this will help but you can update it and have enemies spawn at certain locations on your layout or whatever. Other than that... at least you are not stuck on that other part anymore.

    Subscribe to Construct videos now
  • I'm not completely sure what you wanna accomplish but if it's anything close to what I'm thinking then maybe this will work. Do something like if green is on screen set red and blue collision disabled. That should let the bullets pass through them and only hit enemies that are red.

  • Yeah I realized the explanation was off. I wanna click on Monsters, they get added to the Array then lastly I click on a different button and a random Monster gets spawned from that Array.

    The problem is I not sure if that's possible to do with an Array or if I need to take a different approach

  • Ok so I believe I'm really close to figuring this out! Maybe haha but what I have set up and want to do is this. Let's say I have 6 objects on the screen and I click on each one. They all get added to the Array and have an variable associated to them from the family variable which is shown in the pick. Next I want it so each one is spawned on to the layout by index number/variable they got set to when put into the Array. Example if I clicked on object 3 which it's variable would be 3 and I click on like the button spawn or something I want that object to spawn onto the layout and if this can be done randomly that would be even better. Also I'm not sure if this can be done from families. Either way so help would be greatly appreciated, thanks everyone!

  • You do not have permission to view this post

  • "On key pressed" and select which key.

    Or you can use "On any key pressed" and compare Keyboard.StringFromKeyCode(Keyboard.LastKeyCode)

    ok, i'll try this as well and see which works best, thanks!

  • Well technically you do still use 'on key pressed' to determine if it was pressed, because something will action if that key was pressed meaning it's true. There are loads of approaches. You could do it with 2 variables, one which changes whenever you press a key so on A pressed, set it to A. You check this against another variable which is the "correct key", so if the correct key variable is "A" and you press the A key then both of those variables would be the same and feedback you pressed the right one.

    As for spamming again you could use those 2 variables in a different way. Set the "correct key" to be spammed to "A" and ensure this time that it always matches the other variable when a key is pressed. If it differs then they pressed another key.

    ahh... ok! Yeah i'll have to try that out, thanks a lot!

  • No! LOL I wanna check and see if player pushes the correct button. For example... I want the player to push the A button but how do I know if they pushed the A button and not the B button? But I also want them to repeatedly push a certain button at times also but again... how do I check to make sure they are pushing the correct button and not just something random. Hope that makes more sense

  • Ok so I searched around and i couldn't find anything on this but i was curious if anyone can tell me how I can figure out if a player has pushed a certain button? For example... I want the player to push A rapidly, the left button, B button or X button. I'm just not sure how to check for that and see if the player has done it correctly then do what action I want and if not have a penalty or do a different action. Any help on this would be greatly appreciated, thanks!!!

20Sickness's avatar

20Sickness

Member since 24 Mar, 2015

Twitter
20Sickness has 2 followers

Connect with 20Sickness

Trophy Case

  • 9-Year Club
  • Forum Contributor Made 100 posts in the forums
  • x2
    Coach One of your tutorials has over 1,000 readers
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

14/44
How to earn trophies