InDWrekt's Forum Posts

  • There are a lot of options for beta testing you own game. Since you are planning on just having friends you could export it as an executable and give it to them. You could also use Dropbox or Google Drive. Both allow you to share with only certain people.

    Below are 2 tutorials that discuss ways to share your game:

    https://www.scirra.com/tutorials/74/pub ... uct-2-game

    https://www.scirra.com/tutorials/42/upl ... to-dropbox

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Event 4 move the Regenerate action before the Find Path action.

  • When you need to update the possible path, you need to use the "Regenerate Obstacle Map" or "Regenerate Region Around Object" actions. Remember, the map is only created at start of the layout unless you regenerate it with one of these actions. Also, regenerating the map is very CPU intensive and could cause slow down in your game if you are doing it often.

  • shukra

    I am not exactly sure what your question is, nor do I think I would be the best to answer it. I have never tried to make use of the features you referenced (Google Maps, etc...) in Construct 2. My comment was simply that here are quite a few plugins that have been created where the same result is very easy to duplicate in the Construct 2 event system. It's not meant to say that using plugins is a bad thing. Just that it is best to see if there is a way to achieve your desired result using events before trying to build a new plugin.

  • Quite often, new users come to the forums to ask questions before going to the tutorials page. There is a large selection of tutorials on the site that cover most beginner questions in depth and will get you all the information you need. For example:

    https://www.scirra.com/tutorials/892/mu ... 1-concepts

    https://www.scirra.com/tutorials/906/mu ... -chat-room

    This tutorial series will give you all the information you need to setup a simple multiplayer game with a working chat room. It even continues for a few more tutorials and, if you work through all of them, you will have a good understanding of how to accomplish what you want.

  • There is a good tutorial here:

    https://www.scirra.com/tutorials/474/pa ... e-of-sight

  • Take a look at this modified version of your file. The issue was the separation of the on touch end and swipe speed events. In other words, when you started your swipe, if the swipe action didn't end before the swipe speed event was triggered, the system would have to use the TouchFinal from the previous swipe action so results were incorrect.

  • Event 9 is a repeating event. Every tick when the player is on the platform this event triggers. Since this event repeats every tick, we need to use time to define how far to move. You may already understand this part of the issue but it is important to explain it again so you can see the difference between the 2 events.

    Event 10 only happens when the player first lands on the platform. It doesn't need to use time because it isn't a repeating event. After the player has triggered the On Landed event, it will not trigger again until the player either falls or jumps and lands back on the platform.

  • There is a tutorial for just this kind of thing:

    https://www.scirra.com/tutorials/560/sw ... th-inertia

  • Since the word "better" is subjective in this particular context, the answer is a resounding, "It depends." I know that is not the answer you wanted to read but it is the correct one. If you are more comfortable working with an outside program, it may be better to create it outside then import it. If you like the internal editor and can work with it on your simple graphics, it may be best to use the built in editor. Only you can decide which method is best for you.

    Personally, if I am just making a simple shape to use in a mock up or example, I use the internal editor. It is quick and easy to throw together a simple graphic and I don't have to take the time to switch programs. However, if the graphics I am building are going to be used in a real project, I will always use a more powerful image program to create my graphics no matter how simple they are. Even if I think it will stay as a simple box, there is always the chance I may decide sometime in the future to add more detail and I won't want to start from the very beginning. Having the image in a format that supports layers makes alterations much easier in my opinion.

  • Create a global variable called lastClickedTime and when the mouse is clicked, set it to the system time. Then in your event, add a new condition that says:

    lastClickedTime <= time - 10

    [attachment=0:1nv86w95][/attachment:1nv86w95]

  • There is a distance function that takes the x, y value of the first object followed by the x, y value of the second and returns the distance. Use the system's compare two values event and type:

    distance(<name of object 1>.X, <name of object 1>.Y, <name of object 2>.X, <name of object 2>.Y)

    in the first value and the desired distance in the second.

  • First, is there a specific feature you have not been able to duplicate in Constructs event system? The only reason to create a plugin is because there is something you want to do that the events can't or, to create an enhanced version of a given behavior. If you are having trouble getting something to work, you may get help from the forums here to solve it.

    Second, BlueJ is primarily a Java dev learning tool, not Javascript. Those are not the same thing although they may sound like it.

    Third, when you create your event/actions you are basically programming with an image based language so, you really can't say making a plugin is the only way to program.

    Forth, if you do need to write a plugin, the environment in which you write it does not really affect how it interacts with Construct. You could write it in a full Javascript development environment, or just in a basic text editor like notepad and the script will work the same in the end. There doesn't need to be any compatibility between the software you write it in and Construct as long as the script you write follows Constructs format and implements its framework.

    Just a little background, I currently work as a software developer using Java for server side code and Javascript for the client side. I have used Construct for more than 3 years. In all that time, I have not found a reason to write my own plugin and I have even found many current plugins others have created to be completely unnecessary. The event system is more than powerful enough to handle most things you want to do.

  • Instead of triggering the actions by the direction of the thumb stick, you could set a direction variable on the sprite object. Then the event to trigger the action would be the value of the variable. Since a thumb stick doesn't directly spring back 0 but could over shoot it a little, you would want the axis greater/less than an acceptable value so the player doesn't accidentally windup walking the wrong direction. Also you would have to set up another event specifically for setting the variable back to 0.

    Note, using a value of 0 with a thumb stick or joystick always has the possibility of causing adverse affects when the player releases it. If the player pulls the stick to it's farthest right position and releases it for example, it could spring back to the left a couple degrees causing the system to reset the value to the opposite of what the player wants.

  • If you know you need a new line in your text, you could use the built-in newline object:

    "Hello" & newline & "World!"

    This would take a little more thought if you are creating the string on the fly.