mOOnpunk's Recent Forum Activity

  • R0J0hound how is it achieved in the JS demo "Complex terrain" under examples? Perhaps that can give some clues to convert them to regular events. I'm affraid i don't understand the code.

  • There is this plugin which might help.

    https://www.construct.net/en/make-games/addons/1183/clipping-mask

  • I made a quick reigns example a while ago that uses a good random event method.

    https://www.construct.net/en/forum/construct-3/general-discussion-7/cant-learn-construct-160607#forumPost1042885

  • I found GDevelop and it looks easy to use and is much more affordable, so I canceled my C3 subscription. I was locked in at a lower price, but it's hard to convince friends and family to pay $26 for casual use. And I imagine the price will just continue to go up because of, I don't know, I guess inflation.

    Anyway, C3 is a great product and everyone here has been great answering my silly questions. Thanks for everything and best of luck with your games!

    Ive been considering this too.

    I like how it has a real 3d engine with built in collision and 3d recasting, and basic lighting, but i found the interface a big step down, and i wonder how long it takes for bugs to get fixed given the open source nature of the program. Its defiantly gaining more traction now than C3, I'm starting to see it get mentioned everywhere.

  • There is a free extension that was made recently to allow 3d objects to be rotated. Sorry i can't find the link right now, but its on here somewhere.

  • The download link appears to be dead?

  • Sounds interesting, but way outside my capabilities.

    I will see how things go.

    Thanks.

  • Thanks for your suggestions. I'll give them some thought.

    I did try another method now, where i do one ordered for each loop on all goods based on priority descending, buying and reducing a persons money each time, and discarding other goods of the same type each loop. As the money goes down, they sacrifice priority for affordability.

    Its acceptably fast so far, but its a slightly different behaviour, as its not an optimum distribution of capital like before.

  • I'm experimenting with a simulation.

    A person agent has an income amount and needs to decide how to best allocate their money when buying goods.

    I have each good type as a sprite. They have Type, Cost and Priority variables.

    Each sprite has 4 instances with different variables, representing 4 choices of the same good type.

    The first always has a Cost of 0, and Type "none" and priority 1, to represent the option that a person agent doesn't want, or can't afford to buy any of that good.

    The other instances are given different Priority values indicating how much the person prioritises or desires spending on that good, and different Cost values.

    The idea is that these values, income, cost, priority, change through out the simulation and so people change their buying habits to maximise their spending to get the best mix of goods for their money.

    The way i have it set up is;

    	
    
    
    //First i dismiss any goods that are already more expensive than the persons income.
    
    all goods cost > person income then set boolean too_expesive true.
    
    //now check each possible combination of goods and find the combination with the highest combined Priority and lowest Cost.
    
    if boolean too_expesive = false
    for each good A
    
    	if boolean too_expesive = false
    	for each good B
    	good A cost + good B cost <= persons income
    
    		if boolean too_expesive = false
    		for each good C
    		good A cost + good B cost + good C cost <= persons income
    
    		---- Set total cost = good A cost + good B cost + good C cost
    		---- Set total priority = good A priority * good B priority * good C priority
    
    			if total cost <= persons income
    			if total priority => best total priority
    			
    			---- Set best total priority = total priority
    			---- Set chosen good A uid = good A uid
    			---- Set chosen good B uid = good B uid
    			---- Set chosen good C uid = good C uid
    
    

    This method works well, but the more goods you add the more exponential the calculations become, example;

    each good has 4 options times the number of goods types so with 3 good types that 4 x 4 x 4 = 64 combinations. 4 goods is 256, 5 goods 1024, 6 good types 4096 etc.

    Now if you have lots of agents as well the whole things becomes too processor intensive.

    Is there any other method or a better way of doing it that accomplishes the same thing?

    Thanks!

  • I've tried most types of data systems in C3, and to me nothing beats just using sprite objects made invisible with collisions turned off.

    The ability to pick instance by highest lowest value and foreach ordered, using a boolean to omit some sprites, makes it very easy to sort data.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Mikal Any chance you guys working together on those other plugins could tackle the whole ui plugin problem in C3?

  • This looks incredible. For a moment when i read the topic i thought it was a new plugin you were releasing.

    I hate to be pessimistic all the time, but i'm not going to bother voting, because i already know the response.

mOOnpunk's avatar

mOOnpunk

Early Adopter

Member since 29 Mar, 2017

Twitter
mOOnpunk has 2 followers

Trophy Case

  • 7-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Regular Visitor Visited Construct.net 7 days in a row
  • Steady Visitor Visited Construct.net 30 days in a row
  • RTFM Read the fabulous manual
  • Great Comment One of your comments gets 3 upvotes
  • Email Verified

Progress

13/44
How to earn trophies