dop2000's Forum Posts

  • Why are posting in C3 forum if you are using Construct 2?

    There is no permutation plugin for C2. You can put numbers into an array, then pick a random array index, display animation frame with this number, then delete this index from the array.

    Or simply create all sprites with all frames off-screen. Then select a random sprite instance and move it to the screen.

  • choose("A1", "A2", "A3")

    or

    "A" & int(random(1,4))

    Note, that to generate a random number 1 2 or 3, you need to use int(random(1,4))

  • Here is a demo:

    dropbox.com/s/qschy8ji3bfrvxx/PermutationRandomImages.c3p

    You can use the same method to pick text questions from an array.

  • I am not sure I understand your question.

    If you want to test collision of Card with Card, you need another family. Create another family CardClone with the same objects. And then you can do "Card on collision with CardClone", and control both instances in this event.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You can extract the first 3 characters (Mon, Tue, Wed etc.), this should be enough to identify the day.

    Or load AJAX.LastData into a JSON object and extract day of week from JSON.

    If you are using C2, you will need to install an addon to use JSON.

  • macube This is correct. Basically now it's "https://editor.construct.net" running in WNjs.

  • You do not have permission to view this post

  • You do not have permission to view this post

  • Just add 7 events that convert strings to numbers.

    If DayString="Monday" then Set DayNumber=1
    Else If DayString="Tuesday" then Set DayNumber=2
    ...
    
    
  • I never used any other servers, you need to do some research in Google.

    You can try worldclockapi.com, it returns a simple JSON for a selected time zone:

    http://worldclockapi.com/api/json/utc/now
  • Something like this I suppose:

    For each Enemy
     Enemy has LOS2 to Place
     Place pick furthest to (Player.x,Player.y)
    
  • I mean I can remove these plugins from the project, so you will be able to open it in C3. I doubt the "Cordova Admob Free" addon exists for C3, and the SpriteFont+ needs to be replaced with the official SpriteFont.

  • I can take a look if you email me your project.

    doperst2006gsq@gmail.com

  • No, your screenshot has the same problem as before! When you are picking a nearest or furthest point, it picks only one point instance! And you can't pick any other point after that, because it will pick from the previously picked scope of one.

    Imagine you picked the biggest apple from a bowl. And then you try to pick the tastiest apple among the one you picked, but it's only one apple, so it makes no sense.

    You need to pick all points in enemy's LOS range - this will pick several instances. And then among these several instances pick the point which is furthest from the player.

    .

    Also, remove the second "every 0.2 seconds", it's not needed.