Give me a Pixel's Forum Posts

  • You could import the images into a sprite; one image for each frame. Then do:

    -> Mouse > on object clicked > sprite

    --> Sprite > set frame > self.animationframe + 1.

    Not sure if its what you're looking for but I hope it helps.

    Give me a Pixel

  • bump.

  • Ashley, do you know how to fix these problems?

  • Update #3: dropbox.com/s/1u9iau8mgqhkzxm/Wardens%20%283%29.c3p

    I have now been trying to figure out the animations. I am getting close. The animations work for your player, but for the other players the animations are just idle down or walk down. This is because of the instance variable 'direction.' I need help syncing it for all the players. I have loosly been following this example: https://www.construct.net/en/tutorials/mp-sync-animation-multiplayer-783.

    Lastly, I still do need help with the rooms list (see the previous posts).

    Thanks again,

    Give me a Pixel

  • I just figured out the joystick. It is now working perfectly. All I need right now is the list of rooms.

  • Sorry for talking so much in the last post. The only thing I need help with from that post is the joystick only allows them to go diagonally.

    I have been experimenting with rooms now. I have the creation of a room down, but for some reason, the list on the side is not showing the available rooms to join. I have preformed some tests, and it looks like the 'on room list revived' event is not triggering. I'm not sure what I did wrong, but I need some help. Here is the link to the updated one (https://www.dropbox.com/s/z07z66zdf26u7tt/Wardens%20%282%29.c3p?dl=0).

  • I decided to start on a much simpler game first designed for mobile devices. Assuming I can finish this, I have plans to put it on the Amazon appstore. In my opinion, the best way to move the players would be a joystick. I found this tutorial (https://www.construct.net/en/tutorials/touch-stick-controllers-241). I am using the static analog joystick (sana). However, I have encountered some problems. Here is the link to the current project I am working on. Please note that is is still well in the developing stages and needs a lot of work, e.g. animations, chat box, and control over joining and creating rooms. I need some advice on how to overcome the problems below. dropbox.com/s/ufyqsc3r14gmno6/Wardens.c3p

    First, the peers are not being created. If they are I just don't see them. Please note that I did not start this project from the multiplayer example, I started this from scratch. Second, the joystick only allows diagonal movement. I know why but am not entirely sure how to fix it. It is also like that in the tutorial.

    Thanks for the help,

    Give me a Pixel

    EDIT:

    Sorry, wave the first question. I added some spawn points and made the scrolling work and now it is working just fine.

  • Thank you. That works perfectly.

  • Try Construct 3

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

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

    That works better, but the guards still can still turn completely around even if they have an opening one one or two sides of them.

    I tried that, and they went absolutely haywire. I probably didn't do it right, but it didn't work. I'll have to keep trying. Also a file would be nice if you got it working.

  • Thank you both. I will try those ideas out and see what I get.

  • I'll try that. Thanks

    EDIT: I'm not exactly certain what you mean. The guard has to check if he can move before he moves. Could you please upload a modified version of the file I provided or some screenshots?

    Thanks again,

    Give me a Pixel

  • Hello again,

    I was trying to duplicate a game called Tiny Heist (https://www.coolmathgames.com/0-tiny-heist), but I'm having some issues with the guard AI. I have the basic movement down, but they don't work right in the corners. If they are overlapping a wall/door in front of them, they are only suppose to be able move the clear way. For some reason, they are apparently being able to turn any direction. Can someone figure out what is wrong with this? I have uploaded a basic example. In the example, hold Z to trigger the movement. dropbox.com/s/5t0i6fp8v66wsuv/Guard%20AI.c3p

    Thanks,

    Give me a Pixel

    Tagged:

  • I'll check it out. Thanks!

  • Hmmm. I'm sorry, but that doesn't make much sense. Could you please make a small demo project for me? Thanks.

  • After giving it some though, I am going to switch the inventory to your way, WackyToaster. I checked out arrays and it will be much simpler to just store the quantity and the array reference in the inventory slot. This will also be useful for chests, as I will probably do them the same way. Do you have any suggestions on how I will be able to get out of giving the chests instance variables? From how I interpret your last post, you are saying to have a separate array for each chest? That would work, except you will be able to place chests, and you could have hundreds of chests. Any other ideas? Thanks.