33miles's Forum Posts

  • Hey everyone! I'm back from a long break and am trying to get C2 to work on my mac using wine. I wonder does anyone know which wine tricks I need to apply? There are so many of them but I'd assume DX9 is a given. I tried it with just that and it got me to the home screen, but after opening a blank project I can't scroll around the scene. I see part of it but just can't navigate. Also if I press the preview button I get a wine popup saying it encountered a serious problem and needs to close... I have bootcamp on my mac with Win 8.1 but I've had luck with wine before on other windows programs and it would be nice to have it all work under one OS if that's possible.

    So if any of you awesome people could help I would greatly appreciate it! Thanks so much for reading.

  • LittleStain Hey LittleStain! I will try to answer all your questions in order.

    1. This I didn't even realize until just now. I was thinking that each time I clicked on a red block it would add one to redblockready, so I set it to bigger than or equal to to compensate for people accidentally clicking more than once. But your right this is not the case when using set to, thanks for calling it to my attention. Although this shouldn't cause the event to fail, it's just not necessary.

    2. For this I did not know that it would matter because in my mind a global variable should be applied across all sprites and their instances kinda covering all bases.

    3. Originally my event had a pick overlapping Red.X and Red.Y condition. With that my hopes were that it would pick the red block instance I clicked on and then move it to the location I clicked on next. The later screenshot of my event in this post was something that I was trying to understand from BluePhaze but I believe I implemented it wrong or incompletely. I'm not very proficient with strings/syntax yet.

    4. For your last question on why I'm using a third party plugin for pathfinding, it's because this one is far better for grid-based square by square movement. The C2 built in one moves sprites smoothly and requires monkeying with to get what I want for this game, and even then it wont work like I want 100%. So for now I'm sticking with the one I'm using.

    In conclusion, I hope my answers made sense and if you could help me out with my problem I would be very grateful! Thanks for your time.

  • BluePhaze Thanks for the advice BluePhaze, I changed the event which now looks like this:

    <img src="http://i1287.photobucket.com/albums/a637/Victoria_San_Miguel/NewEvent1_zps6cca1265.png" border="0">

    But now things are kind of weird, I still can't move the red instances individually. And when there are multiple red instances on the board and I try to move one they all move to the same spot but some teleport. Please look at my updated .capx and see if you can find out what went wrong. Thanks so very much I really appreciate all your effort BluePhaze!

    Here's the updated .capx And the Pathfinder Plugin I use. Thanks again!

  • BluePhaze Sorry to keep troubling you BluePhaze but I'm still not getting it. I set the instance variables like this:

    <img src="http://i1287.photobucket.com/albums/a637/Victoria_San_Miguel/RedInstanceVar_zpsef1b807b.png" border="0" />

    And the event like this:

    <img src="http://i1287.photobucket.com/albums/a637/Victoria_San_Miguel/RedInstanceEvent_zpsd3cd9594.png" border="0" />

    But now it moves all of them at the same time. If you could further clarify this I would really be thankful! I'm so sorry I don't mean to be dumb but if you could just make the way the event should go and syntax a bit more ABC I could comprehend better. If I get over this big hump I could go on with my game. Thanks for your patience and help!

  • BluePhaze Hey BluePhaze, thanks for responding again I really appreciate it. I have a question, is there a particular format that I need to adhere to as far as storing the X,Y of the sprite in an instance variable? How would I word it because it's not like expressions in the events where it won't let you enter it if it's not in the right syntax format. Please let me know, and thanks again!

  • BluePhaze Hi BluePhaze thanks for responding. I'm not fully understanding how to utilize your method in this kind of game. Do I need to create a variable for each of the sprites instances? If so that would be hundreds maybe even thousands possibly depending on how long the player lasts in the game. There has to be a far more efficient way to just pick the sprite instance you click on and have him move independently. Also my sprites move in a grid based pathfinder way square by square so you see them traverse a path, not just click and appear.

    I'm sorry if I'm seeming a little negative, it's just that I've been trying to fix this for weeks now. It seems like a simple concept and it probably is I just can't figure it. I'm attaching my .capx and the pathfinder plugin I use. Please BluePhaze or anyone else that happens to see this please play what I have so far. It's not set up for matching yet, I'm just trying to get all the sprites and their instances individual movement down first. Thanks again for your help and patience. <img src="smileys/smiley1.gif" border="0" align="middle">

    Here are my files: My .capx and Pathfinding plugin

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hi again, this is my prototype match 3 game that uses 00Rez's Astar pathfinder plugin.

    <img src="http://i1287.photobucket.com/albums/a637/Victoria_San_Miguel/HelpMePick1_zps524ceaa0.png" border="0" />

    I'm having trouble moving each of the 3 colors new instances separately. I would like to click on a red, green or blue sprite and have it move to a blank spot on which I've clicked on without all of it's other instances moving to the same spot. I don't think using UID would be efficient here because I would probably need to create another event for each one that spawns correct??? That would be unmanageable with 1 new colored instance being spawned after each mouse click.

    Here's a look at my event sheet. With it set up the way it is I can only move the first instance of each of the 3 colors...

    <img src="http://i1287.photobucket.com/albums/a637/Victoria_San_Miguel/HelpMePick3_zps68d2c23b.png" border="0" />

    <img src="http://i1287.photobucket.com/albums/a637/Victoria_San_Miguel/HelpMePick4_zps7e5414f6.png" border="0" />

    Please help me out with this, and tell me what I'm doing wrong. Thanks sooo much in advance! <img src="smileys/smiley1.gif" border="0" align="middle" />

  • justifun Thanks for the info justifun! I'll let you know how it goes. Have a great night. <img src="smileys/smiley1.gif" border="0" align="middle" />

  • justifun Thanks for replying justifun! Would pick by evaluate or comparison work for large amounts of the same sprite, and possibly unexpected outcomes? Like say the person playing loses within just the first few minutes and no more sprites need to be spawned, or the opposite they survive a very long time and hundreds of the same sprite need to be spawned. Please let me know, and thanks again!

  • Hello again! I just have a simple question that I can't figure out on my own. What would be the proper way to select different instances of the same sprite? I start out with the original one on my board for the match 3 game I'm making, but I made it so that every time I left click another instance spawns. I want to control these individually. Any help would be greatly appreciated!!! Thanks!<img src="smileys/smiley1.gif" border="0" align="middle" />

  • lolpaca Wow that's an awesome demo! Thanks so much for taking the time to make that. This could help my match 3 game a lot, I was getting kinda frustrated with the other plugin.

    LittleStain Turning off diagonals made it even greater thanks. By the way did you ever finish your Picking tutorial/guide you were working on? Because in my match 3 game after every mouse click I have it spawn randomly another instance of a colored cube at a random spot on my board. The problem is that I can only move the first instance. Any one after that won't move. So I guess I'm needing some picking help.<img src="smileys/smiley1.gif" border="0" align="middle" />

    Thanks both of you sooo much for all the help, and I look forward to hearing from you soon.

  • LittleStain Thanks for replying! What other behavior would I use to find the nodes and use them? I don't think I've ever used the built in pathfinder for just finding a path only, but it sounds interesting!

    lolpaca The problem I ran into using 00Rez's pathfinder was that I couldn't get it to recognize new spawned instances of the same sprite as path blockers. But try it out, maybe you can make it work and let me know if you don't mind.<img src="smileys/smiley1.gif" border="0" align="middle" />

    Thanks for the reply's guys, lets discuss more when you can!

  • Hi everyone! Just wondering if there are any other pathfinding plugins that move sprites in a grid based way. In my game I'm currently using 00Rez's Astar plugin but have run into problems with it. Can anyone recommend another one or help me with the one I have? Any help would be greatly appreciated, thanks!!! <img src="smileys/smiley1.gif" border="0" align="middle" />

  • Hi, still trying to find a fix to the first problem... But while doing so I have found two new problems with my game. The first new problem is that none of the new instances of my sprites retain their path-blocking value when spawned, even though according to my very first event they should all block paths. I'm confused on this very much. Is it a problem with the plugin or my event logic?

    For the 2nd new problem I made this event to spawn new instances of the colored cubes at random slots on my board:

                

                 Condition1: On any click:

                 Condition2: System, Pick a random "Tiles" instance:

                  -Action: System, create object "Family1" on Layer 1 at (Tiles.X, Tiles.Y)

    This event does indeed spawn a random colored cube at a random slot but sometimes they spawn on top of each other! Is there a simple way to fix this?

    My previous post didn't seem to get any replies, probably because no one could visualize what my events and problems were, sorry for that. So I made a cleaned up version of my test game for you to download. It's just basic but hopefully some of you C2 Vets could help me with my 3 above mentioned problems. Thanks again for your time and help, here is my .capx https://www.dropbox.com/s/rn5fe65d3jhdksn/PathfindingTest1.1.capx

    And the Astar pathfinding plugin/Behavior that I used is here https://www.dropbox.com/s/bi08pg8eyjpozqw/astar_all_1.0.zip

    Have a look and thanks a bunch!

  • Hi all! I'm making a grid based match 3 game. But I'm running into a problem. I set up my events so that every time I click my left mouse button 1 of 3 colored matchable sprites that I put in a family spawns at a random tile on the board. Now the problem is that I can't control any of the new spawns. The only ones I can control are the first spawns of each colored sprite. I'm using the Astar pathfinding plugin by the way for grid based movement. Is there any picking expression or something that will allow me to control any sprite I want whether it was the first yellow colored cube on the board or even the 100th yellow cube instance for example? I just want to click on the sprite and then click where I want him to move. Like I said I can do this but only on the first instance of each sprite.

    I've been trying to fix this on my own for a few days now with no luck... Maybe it's just some easy form of "pick" or expression string that I'm not familiar with. I would really appreciate it if any of you smart people could help me with what would seem to be a deceptively simple concept. Thanks very much in advance for your time and advice! <img src="smileys/smiley1.gif" border="0" align="middle" />