Headbang Games's Recent Forum Activity

  • No you didn't understand what i meant,

    click on the audio is playing condition than click on "i" on the keyboard, this will reverse the event to checking false condition.

    delete the stop action

    and move the play action to the sub event

    now only if music is not playing the action will be called.

  • you can add tags to the audio and check if it's play or not

    on start of layout

    if tag "musicLevel" not playing

    play audio with tag "musicLevel"

    you can add a var to it for the levels

    tag "musicLevel"&level

  • Now that i think of it, you will still need a var for triggering the movement, unless you hold your click/touch.

    Or grouping may also work

  • If that's the case and it's a one time movement to a predefined point B, than yes.

  • I am not an expert, but i am not sure you can and i don't see what's the problem with storing the values?

    Lerp is not an action that runs once, you run it every tick and the object keeps moving until it reaches point B.

    So you must have access to point B .X .Y all the way through, when you click you get the .X .Y but it's not stored anywhere.

  • Hard to tell without a capx, what behaviors do you have on the ship and redball?

    perhaps the ball is pushing the ship back with physics or something.

    try spawning the ball elsewhere see if it helps, if it does, just add another image point away from the edge of the ship, far enough to fit the ball, and spawn it there.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Well if you want the object to move after a click, you got to have some vars.

    If you want it to follow the mouse/touch you can do it without vars.

    check this out:

    [attachment=0:2o1vf4u4][/attachment:2o1vf4u4]

  • You just need to make it smoother using anglelerp and add some conditions (these of course will depend on your level design), check this out:

    [attachment=0:3kr1g672][/attachment:3kr1g672]

  • you can divide the screen in half

    if touch.X > window.width/2

    move player1

    else

    move player2

  • I am not sure what you're getting at, but did you try simply rotating the layer to the angle of the character (having all object that needs to be rotated on this layer, or rotate multiple layers)?

  • When publishing to google store, you have a code version for your release, if you change this code and re-upload the apk, all the user will get an update notification, most user are set to auto-update, so in a matters of a days all your clients should be uptodate.

    I never published to ios, but i am guessing it works the same.

    The update status through the browser object is available if your uploading a plain html export to a domain.

    Then, if there are changes to the offline.appache file the app will automatically re-download, you can access the progress with the expression loadingprogress, it runs from zero to one, you can also use the browser object to detect downloading of update and show a message and update ready to send a browser refresh command.

  • Like he said

    Just remember this important rule, in C2 you MUST have an instance of any object you want to access on at least one layout.

    You can place it anywhere and destroy it on the beginning of the layout, you can make another "bank" layout and throw everything there (this will not affect memory usage of other layouts).

Headbang Games's avatar

Headbang Games

Member since 5 Dec, 2012

Twitter
Headbang Games has 1 followers

Connect with Headbang Games

Trophy Case

  • 12-Year Club
  • Jupiter Mission Supports Gordon's mission to Jupiter
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Popular Game One of your games has over 1,000 players
  • Coach One of your tutorials has over 1,000 readers
  • Regular Visitor Visited Construct.net 7 days in a row
  • Steady Visitor Visited Construct.net 30 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

21/44
How to earn trophies