Corti's Recent Forum Activity

  • AshleyI did it, but my game is designed for mobile and some country names like "São Tomé and Príncipe" are not corrected by my browser.

    Is making several lists a viable option? Or will it be too demanding in terms of resources? something like that:

    i.imgur.com/FKc1dZy.png

    (I've done some mistakes on the exemple cause I did it quickly but you got the idea)

  • it's really interesting but as oosyrag said

    "After all, Iran is not Iraq, so the user should probably spell it correctly to get the right answer."

    and because of that I think it's totally impossible to use this kind of algorithm

    however your post answers the question perfectly and I'm sure it will help people who have the same problem as me

  • To be honest, it's true that I hadn't thought about auto-correction, which doesn't correct all the problems, though, for example the country "São Tomé and Príncipe" is probably too unfamiliar for my phone to automatically set the accents. Is there a way to ignore accents when comparing 2 texts?

    However, I think you're right, I should just add the exceptions manually (your examples of Iran and Iraq were perfect for making me understand).

    thanks for your help

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I've got a new problem in my geography game, one of the game modes requires you to type in the names of the countries (for example here 20 random European countries are selected (in light blue) and you have to type in their names to colour them in green).

    To do this, I have a list of countries with a loop that compares what is written with what is in the list

    The problem with this method is that it leaves no room for possible spelling mistakes (or abbreviations such as UAE or USA). Is there a better way of doing this?

    https://i.imgur.com/OdMdzLg.png

    https://i.imgur.com/aHFZZ8h.png

  • I like this idea, it's something I've never used on construct so I'll try to learn about it and see the feasibility but the approach seems interesting to me, thank you very much

  • thanks for the reply, unfortunately just pointing the distance doesn't work for what I want. to make it simple, it's a geography game and one of the game modes is to guess a country randomly selected. So you have a map with every country in white then you enter a country name and the redder it is, the closer you are. For example if the country chosen at random is Germany if you enter Poland I want Poland to be very red, but if you enter Brazil I want it to remain white... But some countries like Russia are so big that using the distance command does not work)

    I also thought about a loop but I was afraid it would impact performance and to be honest I'm not sure how to do it properly

  • how can I measure the exact distance between the edge of several objects of the same family?

    Let me explain, in my games there are many objects (100+) of the same family but of different shapes and sizes (all are immobile)

    when creating the scene I chose a random object and I would like the colors of the others to be a gradient based on the distance they have with the "SelectedObject" so I tried to do Distance(SelectedObjectX,SelectedObjectY,FamilyX ,FamilyY) but the problem with this command is that it is based on the point of origin and therefore in my example if the pink object is the selected object then the command will say that the green object is closer than the 'purple object and that's not what I want, so I would have to use the collision polygon but I don't know how to do it

  • You do not have permission to view this post

  • You do not have permission to view this post

Corti's avatar

Corti

Member since 10 Feb, 2016

None one is following Corti yet!

Trophy Case

  • 8-Year Club
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

11/44
How to earn trophies