annauva's Forum Posts

  • I'm using this tutorial: https://www.scirra.com/tutorials/560/sw ... tia?page=2 to have a drag screen scrolling with touch.

    I can't get it to be smooth, it gets stuck and jerks around a lot! If you check out my example here, and try it on a smartphone for example, you can see what I mean

    https://dl.dropboxusercontent.com/u/624 ... ayout.capx

    In the tutorial he had inverted scrolling, and I didn't want that so I changed it like he said to substract instead of add in the lerp section. And after that it started to shake and behave strangely.

    I would be SO happy if anyone could figure out a way to make it smooth and work well! I want it to scroll the same speed as the finger moves so to speak.

  • Thank you thank you! Now at least I have one less step to do for each menu item.

    I suppose there are ways to do it more efficiantly but I think I'm to much of a newbie to figure them out, so I'll stick with the method I'm using now. It will be fine. Thanks so much for all your help, this forum is the best!

  • I usually use a dictionary object, repeat tokencount times, create tokenat(loopindex)..

    Quick Example

    Cool! A tad bit advanced for me maybe, plus each item on my menu is a tiled background image that is different from each other so I think that makes it a bit more complicated maybe!

    But if I can get the object family to pin to my menu bg it would help alot at least! Don't understand what I'm doing wrong there..

  • Ok I'll have to think about that, maybe I'll just accept the amount of work I have to do for each menu <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile">

    Could you maybe take a look at this and tell me what I'm doing wrong with pinning the family? https://dl.dropboxusercontent.com/u/624 ... ample.capx

    Thank you so much for your help btw!

  • Cool! But I'm making it from the side, like doll house. I've built it up with lots of tiled backgrounds so it works fine now!

  • So I'm using a bunch of different menus in the game I'm making (for touch screen). And the way I do them is by having a background and items on top that are pinned to the background, and a vertical drag and drop behavior on the background. It works well, but the amount of events I have to have for every menu is going to be crazy!

    I'm wondering if there is a way to make it more efficient maybe.

    Right now I'm creating the background object, creating all of the menu items (it's going to be a whole lot of them later) one by one with the different Y-positions. Then I have to pin each one to the background. I've put the menu items in a family and tried to pin the family to the background but it refused to work so I'm doing it one by one..

    And then of course the events for each menu item that tells them what to do when I press them.

    I don't know if there is any other way to do it, but I thought I should ask at least!

    Maybe some smart way to create them and position them below each other without having to do it one by one or something?

  • Oooh haha ok. Thank you so much!

  • Ok I feel so stupid now because this should be so easy! But I can't get the object to move when it's pinned to an object with the drag and drop behavior!

    I don't get what I'm doing wrong..

    Here is the file: https://dl.dropboxusercontent.com/u/624 ... gdrop.capx

    Could anyone take a look and tell me what I'm missing?

    Many thanks in advance!

  • Oh ok sorry, I thought that wasn't necessary since I used the same code as in the tutorial! Here it is https://dl.dropboxusercontent.com/u/6247160/hus.capx

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I've used this tutorial https://www.scirra.com/tutorials/415/dr ... -and-touch

    to make it possible to drag around the layout in my game (with touch). And it works very good, it's just a bit to slow, and when I try in on my Samsung phone, it's waay to slow. You have to drag and drag to get anywhere.

    So my question is basically if there is some way to make it drag faster with this technique that is in the tutorial, or do I have to try something else?

    I've tried different tutorials with other more complicated techniques but then I've gotten other problems. <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile">

    Thanks!

  • Yeah sure, it's gonna take a long while though

    I'm struggling with every step! And I have no idea how to put out a demo, but I'll figure that out when I get there hehe.

  • I've read that one (or someone similar), but I didn't understand how I could make a tiled background of a house hehe. But I think now that it could work, I will have to build it piece by piece somehow.

    As TIm Gunn would say; it's a make it work moment!

  • I got the zoom to work, which is great! The only thing is that the background image/layout size is huuuge now; 8208x5184 and that won't work.. My RAM can't handle it and I'm sure it would be to slow for ipads and phones right?

    Any thoughts on how that could be solved?

    Again, thank you so much for helping me!

  • Thank you so much! Really appreciate it. And that FAQ will be super helpful, thanks for that too!

  • This will probably not be my first question here, because I have this idea about a game where you have a house and can decorate each room with lots of furniture and stuff. Like in the sims but not at all 3D. And I'm a complete newbie so sorry in advance!

    Anyhow, I want it to be like a doll house, so you see it from the front always. And it should be zoomed out at first, and when you click on a room, it zooms in on the room and then you can decorate and all that. And then a zoom out button so you see the whole house again anytime you want.

    I just can't figure out how I should do the zoomey thing.

    Do I have to have a big image of the whole house and only have the room in the "game area" when it's zoomed in, and then shrink everything when the player zooms out? If so, how do I make every little object that's in the house stay in place when everything is made smaller?

    My brain hurts, so if anyone can point me in the right direction, I would be super grateful!