InDWrekt's Forum Posts

  • To make your game more extensible (allowing more/less users or more/less cards in a players hand) it would be better to give each card it's own stats. However, this can still be done with an array if you like. Simply put a card object and it's associated array (in this case it would be a 5x1x1 array) in a container. Using the container, each time you spawn a card, it's associated array is created and each time you reference a card, you also reference it's array. If you prefer working with arrays as opposed to instance variables this may be the way to go.

    Personally, I prefer to use named instance variables because it helps me keep track of what each variable is doing. Referencing a position of an array doesn't really tell me anything about what information I am accessing. If you need to make a change a year from now, will you still know exactly what each array position represents? What if you get a team to help you and want one of them to make the change. How easy will it be for someone else to figure out what the array is doing? Even if you comment it really well, it will probably still take longer to change the array based objects than one with named instance variables.

  • In Construct 2 angles are calculated clockwise. At 0 degrees your sprite will be facing right, 180 degrees it will be facing left and 90 degrees it will be facing down etc. What this means is, if the angle you are turning toward is less than 180 degrees away, you would want to rotate clockwise. If it is more than 180 degrees, you would want to rotate counter clockwise. At exactly 180 degrees, it doesn't matter.

  • The most BEAVERLICIOUS thing in my life is, having a wife that is far more artistic than I am. It forces me to push my skills (just to show her up of course) every day.

  • 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

  • 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.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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.