TRMG's Forum Posts

  • Hey, please follow these steps, i hope helps you,

    http://d.top4top.net/p_305a18v01.png

    1. in start page of your game you need to do like this image, and you need also to make unique local variable for local storage only, and call it record, (Means every score that user receive will be recorded in record variable,

    http://e.top4top.net/p_3055le1c2.png

    2. this image here you make a record variable, as you see inside the image, the high score will set same number with the record, set high score to record to stay on the same level that you received, note; ( local storage and record variable never removed if you set item currently.you set this on level selection page.

    http://f.top4top.net/p_30579jjx3.png

    3. in the whole levels, you must make a sup event behind the score that the use will received to save it in the record, this will save your high score even when you close and open the game in the browser or mobile phone it is the same.

    Thank you SaRaB, but randomly helped me already...

  • Heads up for anyone doing this:

    It does not work if the variable name and the local storage key name are the same

  • You have to have the following layout:

    Get item "HighScore" [action]
    On item get "HighScore" [event]
       -> Set HighScore to LocalStorage.ItemValue [action][/code:2u2qgew9]
    

    Great, thank you!

  • i have a big problem with xdk intel

    when i use ios it's work plus windows work too so can u fixed this problem i'm new on app work program

    when i try to build the apk android give me screen white

    on other devise every thing OK

    then my footer up to be a header and every thing broke please give me a help

    Please post a list of the plugins used in your project

    One of my games had this problem too on a reviewers tablet... (It was an old model, but I can't remember the name)

    I had no plugins for it and on all of the phones I had at home it worked great.

  • Hey,

    So I got these events:

    But when I close the game and reopen it, the variable does not change...

    What am I doing wrong?

  • scirra.com/forum/calculate-curve-between-two-points_t85302

    Search tool is your friend ;D

    TRMG

    I made an example a year or two ago for someone asking a similar question. I ended up making an angry birds type game.

    There was a thread last month where someone else was playing with it:

    https://www.scirra.com/forum/viewtopic.php?t=182292&p=1070325#p1070325

    or see my original capx files:

    http://www.rieperts.com/games/forum/angry_birds.capx

    or a better version (but requires ROJOhounds chipmunk physics plugin)

    http://www.rieperts.com/games/forum/angry_birds_chipmunk.capx

    The chipmunk version leaves a trail of dots after each shot - so you know where you aimed previous times. And the chipmunk version preforms better on mobile.

    Awesome, thank you!

  • You could use a dot sprite and spawn an instance of it at the arrow's location (be it origin or image point) every X frames/seconds/etc. Then give it a timer to destroy it, or destroy it at a certain event (depending, if you want it to disappear after some time, or when something else happens).

    There might be a better way, though. This one is just off the top of my head.

    I want the dotted line to appear before you would launch the arrow...

    I could have a second arrow witch would be invisible and every time you would change the trajectory it would launch it, but I am afraid of performance drops on mobile...

  • Hey guys!

    I am working on an archery game and I would like if I could draw a dotted line that would follow the arrow that I would launch.

    Something like this:

    For the arrow I am using the bullet behaviour with gravity.

    Do you know any way I could achieve this?

    Thanks in advance!

  • Hello everyone,

    We have a small daughter which at the end of december will be 8 years. She likes playing games on the laptop too much. She is only allowed to play BigFish games which we allow her to play. Games like the Dora line, Delicious Emily, The Island Castaway, Island Tribe, Jojo Fashion show, World Mosaics, jigsaw puzzles and other games.

    But I also like her to do creative educational learning which is fun. Therefore the idea growed to let her create her own games. She is very creative a fast learner and has a lot of fantasy.

    My question is : Can Construct 2 be used to let our daughter of 7 learn to create her own games succesfully? Also any idea which is the best educational method to learn her this activity will be very welcome.

    I thank you in advance for your time spend on my request. Be assured that will be very much appreciated by myself and our daughter Karabo.

    Wish you a very nice day.

    Friendly greetings,

    Karabo and Chris

    I think that you should also get some sprite packs (some are free (C2 comes with some) and others are paid) because it helps to actually have a game that looks like a game and less like colored boxes on the screen.

    Also I started learning C2 when I was 13 (I am now almost 15) and the first time I opened the program I had no idea what to do, so I closed it =D

    Afterwards I looked up some tutorials on youtube (I recommend this one to start:

    Subscribe to Construct videos now

    ) but she may not want to learn from tutorials so I suggest that you look up tutorials for simple games in C2 and then teach her yourself.

    Anyways, good luck!

  • C2 is a very versatile game engine. It can handle the job easily, it depends more on how easy it is for you to learn it.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I think some cheaper phones cannot load images higher than 1024x1024 pixels properly (which implies sprites of 1022x1022), could be wrong though and the value may be different

    To be safe: Stay below 2048x2048. (that means: 2046x2046 because of the filter padding added by C2 on export). Older and medium devices (Iphone 4 for example) max out at 2048.

    Great! Thank you!

  • >

    > >

    > > hmm, have a look at the capx, i wil send it to you, pm

    > >

    >

    > I didn't receive any pms...

    >

    Resent.

    Hey,

    I took a look at it and I think the problem is that the buttons don't have any z-order actions...

    If you could replace the button objects with sprites then you could rearrange the z-order, but I don't know if your CSS code will work with sprites.(I never used CSS in C2)

  • Like this ?

    Capx: https://www.dropbox.com/s/2nx9wuttdpy7f ... .capx?dl=0

    My enemy is not square, so it would lose it's aspect ratio...

    This is perfect! Thanks!

  • hmm, have a look at the capx, i wil send it to you, pm

    I didn't receive any pms...

  • Hey,

    I got an enemy in my game that I want to shrink when he's taking damage, but I don't know how to do this exactly...

    I tried setting he's scale to something like "self.scale - 0.01" but "self.scale" does not exist so I don't know how to do this...