Allardje's Recent Forum Activity

  • Are you bloody serious? Chrome has this feature? This is awesome!

    Thanks for the help! This explains why everything was centered to the left with everything i created.

    I will try this right now and let you know how it ends up.

    I would be so happy if this works out great since that was the only thing i was worried about. Will check back in later .

    EDIT: Oh god this really works!

    Thank you so much! Now i can really finish my app exactly the way i want it.

    P.s. i don't know what you are working on at Intel XDK but i really like the name

  • That could be possible! I think scale outer could do the trick in combination with the parallax.

    So what i should do is:

    • Scale Outer
    • Background parallax 100,100
    • All content layers parallax 0,0?

    Wish i had something to test it, i only got 1 phone which has the 720x1280 resolution so for me it always fits.

    I was not sure because i remember a game i made like a year ago and it would simply align all content to the left which made it look pretty ugly.

    And i always used Scale outer.

    I wish i could say that i'm going to try it but i have no idea how without buying a phone that has a different resolution

    Is there any tool to check different screensizes? Like a emulator i can trust that it displays the app the exact same as on a phone?

  • Hi!

    I've read a lot about screen resolutions and stuff but still i am not sure what way to go.

    I do know how i want to work with screen resolutions but i am not sure if this is possible.

    Let me explain with a image.

    As you can see the content will always be centered, and the sides will just be wider a.k.a more is revealed since it will be designed that way.

    The red line is a 720x1280 resolution.

    The white outside is a 1080x1920 resolution.

    Everything within the red lines is content.

    My goal is to actually have my content always centered. If the screen resolution changes i want it to simply take the space outside the container. So if for example the screen is wider than the 720x1080 resolution i want my game to take the left AND right AND bottom area that is outside the screen.

    Example on phone

    Is this possible? And if yes can any one get me started on how to reach this goal?

    Thanks in advance!

  • Hi!

    I am working on a app which works like a charm but i have bad thoughts about the safety.

    I actually fetch a lot of data trough AJAX requests via .php files on my server.

    Now everything works as expected but i want to know if there is any way to only allow my app reading the .php files. Is there any way i can identify my Construct 2 project to my php scripts so the script won't be accessible by browser but only by my app?

    My method at this moment is very straightforward and everything but safe:

    AJAX > Request - domain.com/scripts/phpfile.php?variable1=1&variable2=2

    As in the PHP code i connect to my database, get my info and echo it back.

    For now this is great to test everything and set up a working project but as you know you can simply access the php scripts once you know where they are and for that i feel not safe. Some one with bad intentions could crap up the complete database with no hassle at all.

    Any good solutions?

    Thanks!

  • So,

    I'm bumping up my 2 year old thread .

    In this 2 years did something make this possible?

    I am still interested in creating wallpaper applications.

    Is there any way we can create a "Set as wallpaper/background" button these days?

    Thanks in advance!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thanks both for your answers!

    This time i was so close! I did read some things about tokenat.

    What i tried was: "Exp"& tokenat(Dictionary.Get("expTable"),0,",")

    Got the right explanation now ! Thanks!

    EDIT:

    Oh wow, i actually had it all this time before ( as shown above ) the thing is i just hadn't set the key itself yet

    Though this explanation is pretty clear to understand since i had no idea why it was working !

  • Hi,

    I am not sure what the best way is to do the following:

    I am creating a level up system in my game and i am not sure what to use ( array or dictionary ) for my needs.

    I have a level up table, for example: lvl 1 = 83 exp, lvl 2 = 150 exp, lvl 3 = 300 exp.

    Now what i tried to do is creating a dictionary with a key named: expTable.

    As key i added "83,150,300".

    So the result is like:

    Dictionary > Add key: "expTable" value: "83,150,300".

    Is there any way to get for example the "300" in that array? I can not find the right solution.

    I need something like: Dictionary > Get key "expTable(3)". As where the 3 would be the third number in the "83,150,300" value.

    Any help is really appreciated. Thanks in advance!

  • Alright this is very akward but i just tried "Spawn another object" instead of "Create object" and that works somehow.

    I wish i knew why. Any one here having a explanation why spawning the object works instead of creating it?

    Would be good info for my learning curve! Thanks!

  • Hi,

    I have a issue and for a few days now i can't seem to fix it.

    I've looked up some stuff on creating multiple instances of 1 single object but yet i can not fix it.

    The issue is the following:

    I have multiple enemies which are getting spawned over time. Each enemy will walk around and once into a specific area ( a sprite ) it will start to attack.

    The attack is simply a: Create object on enemy. This attack is a animation ( a slash ). Now this works but for some reason i can't get multiple targets to attack in the specific range. To destroy the "Slash" i use > On animation finished > Destroy. I think this actually destroys all the animations..

    This is what I've done:

    The result is that if multiple enemies are in range ( overlapping the "attackRange" sprite ) only 1 will attack. So it seems. All sword will become invisible and visible though. Only 1 slash animation shows at a time.

    What i need is that every enemy will simply attack and has it's own Slash animation.

    I can't upload my .capx since it's a part of a whole game.

    Thanks in advance.!

  • Asmodean Thanks for your reply

    R0J0hound Thats the solution! Thanks!

    Gosh i wish i knew the right search terms.

  • Hi Yall,

    I've tried all i can and i could not find the solution somewhere on here so i want to ask here how i can fix this.

    I have a circle and a dot. You can drag the dot within the circle but it should lock within the circle.

    So you should be able to keep dragging the dot but it should not leave the circle.

    I've uploaded a .capx. The dot should always be draggable within the circle but not leaving it.

    I've managed to let it stop on a specific distance but i don't want it to stop i want it to simply follow the collision polygon from the circle if dragged to the other side for example.

    I hope i made myself clear ( i'm terrible in explaining. )

    Thanks in advance!

    The Capx: https://www.dropbox.com/s/g5bntkzqpwegc ... .capx?dl=0

  • Nope it was not. It was set to nothing.

    Trying that actually works ! Only if the height will become to big it will stretch.

    Though as far as i know there wont be any mobile / tablet screen that has a bigger height than width.

    If it's the case i'm fine with this solution!

    Thanks a lot!

Allardje's avatar

Allardje

Member since 25 Jun, 2013

None one is following Allardje yet!

Trophy Case

  • 11-Year Club
  • Email Verified

Progress

12/44
How to earn trophies