Anwer's Recent Forum Activity

  • Outstanding! Many thanks to you so much

  • > Hello,

    > Whenever I upload my phone to phone gap it return with a parsing error when I try to run it on my phone.

    >

    > I have Signed the APK, and my phone is enabled to allow unknown sources to install APk's.

    >

    > I have absolutely no clue with as to what to do.

    > Thanks,

    > Ian

    >

    Yes, I had this problem. Since Phonegap automatically generate "X86 APK" and most android phones use "ARM APK" it kind of a big problem. Any how, What you need to do is add this line of code to your Config.xml file:

    <plugin name="cordova-build-architecture" spec="https://github.com/MBuchalik/cordova-build-architecture.git#v1.0.1" source="git" />[/code:1v3sevg0]
    
    then zip the files, and re-upload it to phonegap. I hope this solve your problem.
    
    Good Luck.   
    

    Many thanks for your tutorials ('_;)

    I added the line of code to the xml file, but it showed me the same parsing problem.

    Any thoughts on how to fix this?

  • Add function object by double clicking layout white space and selecting it (like you would add keyboard or mouse, etc). Then you can use function events and actions.

    You will need a basic scripting understanding of what functions are/do though.

    A function isn't going to help. Only one Layout exists at a time, so you need to store the data, in a global, for example, and grab it when the new layout starts-up.

    I will try the global variables approach.

    Thanks both of you

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You would need to use a global variable to do that.. or maybe call a function, haven't used Construct2 functions across multiple sheets yet but it "should" work...

    Thanks! How can I call a function though?

  • I'm trying to give a condition for an event to happen in another layout.

    I tried "include" but didn't work!

    SOS

  • Something like this?

    This is exactly what I did. Thank you for showing it.

    For some reason, it doesn't work!

  • I set a bullet to spawn when I press the spacebar and did exactly where I wanted it to spawn every time.

    I set the "Angle of Motion" to "Character.Angle"

    I made sure the "Set Angle" in the Prosperities set to Yes.

    However, it never changes to angle. It always goes to 0 degree!

    Please help

  • I explained what the event you created does..

    If you want it to do anything different, you should change the event..

    You could solve it by by:

    on spacebar pressed

    > spawn bullet

    > bullet set angle of motion..

    or

    on bullet created

    > bullet set angle of motion

    or any other event referencing the bullet you want to affect..

    Right now there is no reference to the bullet, so all bullets are affected.

    By placing it under the create action, the bullet in the next line is the one just created..

    By using the on created event, you are referencing the bullet..

    Solved all thanks to you. LittleStain

    I did as you said and made the "Set Angle" request to be after "On created"

  • If this is the only event affecting the bullet angle of motion it will only change on the moment the space bar is pressed..

    So every time the space bar is pressed all bullets on screen will set their angle of motion to the angle of tutu..

    I'm not sure what you want to change about this, so more explanation is nescessary..

    You just explained the whole thing impressively!

    What I wanted is to make the bullets that were spawned on the "Spacebar" press to keep going to the end of the layout rather than changing angle when the character changes his angle and "Spacebar" is pressed again.

  • The bullet keeps changing angle as the character changes his!

    I set the "Set Angle" to "No" and do it like this.

    How should I do it then?

  • You must have something else in your program because it works for me.

    You were right

    Problem solved.

    Because the game starts with a dialogue, I forgot to ask the text to change by tabbing the screen!

    Stupid me

  • Problem solved.

    Because the game starts with a dialogue, I forgot to ask the text to change by tabbing the screen!

    Stupid me

Anwer's avatar

Anwer

Member since 4 Jul, 2015

None one is following Anwer yet!

Trophy Case

  • 9-Year Club
  • Email Verified

Progress

10/44
How to earn trophies