mikewalton206's Recent Forum Activity

  • 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!

  • Try Construct 3

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

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

  • Unfortunately i can't. It takes lots of time to make an example like this and I'm already busy with my two projects and working on things I'm stuck on. You'll just have to learn from my video and hopefully other tips to help you out. Best of luck

  • so what you would have to do is something like and a variable called levels or whatever you want and just add it to the event example I have. First group all the events and call it like Level 1 spawns and add the condition if level is = to 1... spawn these. copy the group and just change it up. if level is = to 3 spawn these. You'll have to make it so when player is on like level 1 set levels to 1, when player is on level 2 set levels to 2 and so on. That way whenever a player is on a certain level you spawn items, enemies or whatever from those groups

  • Hello, I have a video I made a long time ago. This will show you how to spawn random enemy, items or whatever you want it to be. This should get you stated so good luck!

    Subscribe to Construct videos now
  • Ok so in this video you can see when my player goes into another room it has a transition. I was just curious if i had two players... is the second player pretty much at the mercy of the first player since the camera is focused on them?! Because i tested it out a bit and it does leave them behind unless i have an event after room transition but far as running around the room is it even possible to get the to camera focus on both wherever one moves and not leave the player off screen? 🤔

    https://www.facebook.com/230243354096700/posts/712799979174366/?sfnsn=mo&s=1731398995&w=y

mikewalton206's avatar

mikewalton206

Member since 24 Mar, 2015

Twitter
mikewalton206 has 2 followers

Connect with mikewalton206

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