lionz's Recent Forum Activity

  • It's a common problem with picking and system waits and it's more difficult than it first seems to get a bunch of enemies working independently on screen. My approach is to add timers to enemies for any waits and use functions for the attacks.

    So you start a timer of 0.5 seconds on an enemy and say on timer complete, run function attack. However the important thing here is to identify the one particular enemy so you send the enemy.UID through the attack function as a parameter. Then when the attack function is called you use a condition pick enemy by UID, where UID is function.param(0). This ensures that the particular enemy will do the attacking, and the same enemy is picked from timer ended to running the attack function.

  • Pretty much just a global variable set to 0, 1 or 2 and then with the key presses for abilities you use condition global variable = 0, 1 or 2.

  • Games that became hugely popular like Undertale, Hotline Miami and Gunpoint will draw attention to the software. Last time I used Game Maker was in 2005, in fact I bought Construct 2 because I was looking for a better engine for creating games, Game Maker seemed ancient to me. Maybe they've taken steps toward keeping it up to date in recent years but Construct is here now and does everything I need.

  • Contact you privately how?

  • Sorry if it wasn't clear, x is supposed to be a number you put in, the squad number to look for. So if you were looking for other members of a squad you could run a function with this logic in it and pass the squad number through as a parameter and replace x with function.param(0).

  • Use a sprite to make your own button, combined with 'on touch' or 'on click' events. You can then apply an image and opacity settings etc

  • nice one :)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • What specifically do you need help with? All the events are with you..

  • I don't have a computer right now and won't have for a while, am just on my phone but didn't want it to seem like I was ignoring the post. Arrays do seem to scare everyone but they are fairly easy. All you are doing is pushing 12 numbers onto it and then picking a random number. But in an array you can remove the number you picked so it doesn't get picked again. I can't think of an easier way to do it but this way is super simple if you have looked at the array documentation.

  • Well random(1,12) is going to pick the same number sometimes, so you want it to spawn only once per imagepoint? My approach for this would always be to use an array with all relevant values pushed onto X then pick something from 0 to array.width. You then delete that X from the array so it can't be picked again.

    This could also work if something was destroyed on an imagepoint, you could add the number back into the array so it's selectable again if your game requires this.

    Also watch out with random(1,12) as that picks decimals so you probably want to use floor(random to get a whole number.

  • You could calculate the distance between the two so distance(player.x,player.y,object.x,object.y) to start with and the smaller the value the more points they get.

  • Hmm the logic seems ok. Maybe the object doesn't have a collision box? It's guesswork without the original file.

lionz's avatar

lionz

Member since 5 Aug, 2013

Twitter
lionz has 73 followers

Trophy Case

  • 11-Year Club
  • Jupiter Mission Supports Gordon's mission to Jupiter
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Forum Hero Made 1,000 posts in the forums
  • Forum Wizard Made 5,000 posts in the forums
  • Regular Visitor Visited Construct.net 7 days in a row
  • Steady Visitor Visited Construct.net 30 days in a row
  • Enduring Visitor Visited Construct.net 90 days in a row
  • Unrelenting Visitor Visited Construct.net 180 days in a row
  • Continuous Visitor Visited Construct.net 365 days in a row
  • RTFM Read the fabulous manual
  • Great Comment One of your comments gets 3 upvotes
  • Email Verified

Progress

24/44
How to earn trophies