Blacksmith's Forum Posts

  • Hi SindbaD,

    There isn't a way to select multiple objects in the projects/objects window (as far as I know)!

  • Hey sai sronitha,

    I'm happy to try and offer some advice, but perhaps you could post a screen shot of lvl 10, to save some time!

    <img src="smileys/smiley1.gif" border="0" align="middle" />

  • KaMiZoTo, your project looks really cool!

    Good luck with it, I'm looking forward to playing the demo :)

  • Hi Wreckbot,

    Welcome to C2.

    As both the tutorials you've mentioned are for learning purposes, I'm fairly sure it would be okay for you to use what you've learnt from them, to create your own project (especially if you are using your own media).

    With regard to your other question, it would be worth checking out the 'How do I' section. Where you can find information on:

    1. "Multiplayer/Networking"

    2. "Making a title/menu screen"

    3. "Variables (Local/Global/Instances)" - you can use these to store information regarding locked/unlocked levels

    4. "Webstorage" - you can use this to save game data between sessions.

    Good luck, I hope that helps to get you started :)

  • MakubeX,

    Thank you for the modified example, I appreciate the effort you've put into helping with my problem :)

    I used a Foreach loop in my first effort too! But I couldn't get it to work the way I thought it should either, so I removed it.

    Not sure why some sprites move out of order with the rest. But that's another problem I encountered when I created the example using stop sprites.

    I'll keep trying to find some answers, and hopefully I can get things working the way they should!

    Thanks again for the help.    <img src="smileys/smiley20.gif" border="0" align="middle" />

  • Thanks for the help MakubeX :)

    In the meantime, I'll carry on trying to get it working the way I want.

  • Hi MakubeX,

    Thanks for the help, although I'm not sure this'll work better than using stop sprites?

    I've only used the distance comparison a few times before, and I'm not quite sure how I would do what you've suggested.

    My sprites are all instances of the same object, so I don't know how I'd be able to use the distance expression (i.e. distance(player.X, player.Y, player.X, player.Y)). I guess I'd have to use the objects IID somehow?

    Thanks again for the advice, I'll certainly give it a try :)

  • Surrealizer,

    Yeah, the C2 community is really great if you need help! So much knowledge, and they are always happy to share it :)

    I've had plenty of help myself since I started, and I'm sure I'll have plenty more questions to ask in the future. After all, there's always something new to learn ;)

  • Hey Surrealizer,

    Ah, I've just been testing your example and putting together a reply, but I guess it's not needed now!

    Glad you found an answer though (thanks Kyatric).

    Good luck with the rest of your project :)

  • Hi jeffige,

    The touch object is also set up to accept mouse inputs (so that should solve one problem).

    The touch object allows you to compare touch speed (go to add event, select the touch object and you should see the option). Also you can save the x,y co-ordinates on start of touch and compare these to the x,y co-ordinates on end of touch. So really you could use either of these to indicate whether the player is swiping or not.

    Hope that helps to get you started :)

  • pmurph,

    No Problem, glad I could help out!

    I haven't used pathfinder yet, so I'm sorry I can't be much help on this one (as mentioned, I still have loads to learn myself!).

    But its a really friendly forum, and C2'er are a very helpful bunch. So I'm sure someone will be able to assist you.

    Edit: as this is a separate issue it might benefit you to start a new thread about it. Otherwise people may not pick up on your pathfinder problem ;)

  • pmurph, good to hear you got it working the way you wanted!

  • Try Construct 3

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

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

    Yes you got it, add the relevant x,y values (for both objects) into the parenthesis for the distance expression.

    Not sure why you're still having problems, did you also add a comparison value into the 'second value' box?

    If you don't have any luck yourself, you can always post your .capx on the forum and maybe someone could take a look at it for you.

    If you haven't done this before, it's pretty straight forward. Just save your project as a single file (option in file menu). Then place it somewhere like Dropbox or Google Drive. Then you can post the http link on the forum, so that others can access the file.

    Also worth pointing out that using before a user name (e.g. pmurph) will alert the user that you're contacting them.

  • pmurph, don't worry it can take a while to get used to this stuff. I'm still learning new things, and asking silly questions all of the time :) I've added some steps below.

    1. Add a 'Compare two values' event (found in the general section of the system events).

    2. Click on the first value, and in the Objects expressions window select system. This will give you a whole bunch of options. Scroll down to the maths section, and you'll find the distance option.

    3. Click on the distance expression (this will add it to your comparison equation).

    4. To add the enemy & turret X & Y values, use the object expressions window again. click on either object (enemy or turret), and scroll down until you find the expressions for each items x&y. Add x&y values to the equation (for both objects).

    5. Once you've added the distance + x&y values, click on the second value box. Here you'll need to add a comparison value for your equation. So for example, if you want the turret to recognise an enemy when it gets within 50px you'd add 50 in this box.

    Hope that helps to get you going in the right direction.

    Good luck :)

  • Nice work , the water's very realistic. I really like the way it distorts the look of the ship and the rocks.

    I look forward to playing the game ;)