Dkrestia's Forum Posts

  • Hi dop2000

    thanks your suggestion, for to be clear, i must create another family with same instance but different variable that needed for any instances to "See" another.

    now its work!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hi, dop2000

    I don't use family in my screenshots, because with or without this doesn't make any differences.

    I used family for simplify event, prevent any repeating the same event.

    so, i use only one sprite and create the other copy with event since the move of the sprite is same.

    then how the "Sprite" with "name : NPC" can "see" the "copy of Sprite" with "name: NPC2" and the "copy of copy of Sprite" with "name: PLAYER" then chase to move on to the nearest of it?

  • case : i have one sprite with instance variable (name), when the sprite is create, this instance variable (name) can be change as : player, NPC1 or NPC 2

    so, the moving behavior is depend on what the "name" of the instance. If it create as "player" than it can be controlled, but when its as "NPC" or "NPC2" its move like an AI (NPC).

    game play : when every NPCs create, it must move on other "player" or "NPC", depend on the nearest object (player).

    As the Player with instance "NPC" : If the nearest object is Player ("player"), so it move on it, but if the nearest object is Player ("NPC2"), so it must move on to it.

    problem : how can this object sprite can triggering what object targetting move? since all abject is the same sprite with only have different instance variable?

    note : all player is only the copy of one sprite object!

    here is the event sheet :

  • HI, is there any way to download and save any files (ex. image) in my game from uri/url?

    said, i made offline game for android, and i want to import a new file in my game.

    in project, we make this from "import files" in project files.

    But how to do this when game had built on android (game.apk)?

    sure, we can import via url, but how to save it on file folder? so when close and run again, its already has this files?

    thanks in advance

  • Thank you

    Wow, sound easy, i never try it before.

    Thanks again

  • Hi,thank you for your replay, but i think it is not the problem. If i do like that, i would copied the knight object sprite hundreds time before the build the game and the skill unable to edit and save, right?

    Remember, the player only have one knight when play this game for the first time, and during game play the first knight skills will be upgrade, then the player will get one more knight with lower skill.

    So the event sheet is like:

    When player close the game,

    Knight count is 2 (save it)

    the skill of first knight is 200 (save it to storage),

    Second knight is 180(save to storage)

    When open the game:

    on start of layout :

    Load knight amount to global variable

    create object knight (2 times)

    How to targeting the saved skills and load it to the knights object?

  • Hi, i want to make a game that the player can get many heroes with single sprite but has different skills for each other.

    1. said, i have one object called : Knight. This character have a skill (default is 100)

    2. in game play, player can upgrade this Knight skill to 200

    3. in game play, player can get this Knight character again with default skill : 100, so the player have 2 hero, Knight1 and knight2 with different skill (200 and 100)

    4. on start of layout, it will create all Knight, so if player has 5 knights, it will create 5 Knights with same Sprite, but, has different skill, so the player can choose any of knight.

    but

    question :

    1. how to do that? should I create multiple sprites for each character(knight) I get (even if only duplicate?) then it means, i must create a hundreds object?

    Tagged:

  • Hi, said, i have a sprite, then, i load an image from url. But, after the game close, the sprite image is back to default and i need to load the image more and more.

    How to save the loaded image on this sprite, so when the game close and start again, the sprite has the image that i have load before?

    Tagged:

  • Thanks for replay,,

    Ah, i see... i think the problem in the tutorial only affected on compiled game. so even if it only plays through the server, it still has problems

    just hope, maybe there will be a plugin that can control the connection (NAT/TURN) settings internally in the game

  • Hi, i have exported the default multiplayer chat from C2 to a html 5, and has uploaded to github repo as a host. So i test and not work. This is the step:

    1. Exported to html5 format

    2. Create and upload to github repo to hosting

    3. I open it in my laptop browser(chrome). Login as host

    4. I open it with my second laptop. Login as peer.

    5. Done well. BUT :

    1. With my laptop as host

    2. In my mobile phone as peer

    3. Login ok. But cannot send or receive any chat

    1. Using 2 mobile phone(android)

    2. Login ok. But cannot send or receive any chat

    Result:

    Laptop vs laptop : OK

    Laptop vs phone : failed

    Phone vs phone : failed

    Why this is happen?

    This is repo that you guys can try : krestia.github.io/chat-test

  • Hi,if i have a server, can i use it for multiplayer game..?

    Said, i buy a web hosting, and use it for my game like scirra server?

    Thanks

  • ertan

    Warning still exist? Not sure, but my be:

    1. Google pending

    2. Did you change the code(jQuery) or just renamed it? Look at the image that i was posted.

    3. Jquery 2.1.1.min.js still exist in www folder. Forget to delete it.

  • the Mnk

    Yes, your game still exist but, dont forget, if you use admob, it will limit the ads. After that, based on my experience, your game will be terminate on google play, deleted.

    If it happen, you cannot upload your game anymore event if you fix the problem.

    But, you can try your luck. :)

  • ertan

    After exported, open the exported folder, and you must change jquery version on this folder, not your c2 installed program.

    1. You can change jquery file if you can download the file version 3.4.1.

    2. If dont, you can open v 3.4.1 code inside, copy and paste in your v 2.1.1, dont forget to rename the version. The code must be like this:

    3. After that, open your index.html with editor, change jquery version inside this index.html target

    Black screen if you forget to change in index.html

  • Like i said. You guys just update your exported jquery 2.1.1 to jquery3.4.1. You can upload to google play without warning. But, i dont know about the effect for apk nor google.

    Just go to jquery website,( jquery.com/download ) open the compressed version 3.4.1.

    Open your index.html change jquery target