dop2000's Forum Posts

  • Many mobile games have Facebook button. What is it most commonly used for?

    I believe some games are using Facebook leaderboards and can show your friends scores. Some games can post messages on your wall.

    Are there any other reasons why I should ask players to login to Facebook?

    I don't plan to publish my game on Facebook and I'll be using Google Play or Appstore leaderboards.

    Also I want to add a "generic" share button that can share scores to various social networks.

    So do I need this Facebook button?

  • Try this:

    add two instance variables: targetScale=1 and currentScale=1 to the object.

    On Mouse wheel Up: Add 0.1 to TargetScale
    
    On Mouse wheel Down: Subtract 0.1 from TargetScale
    
    On every tick:  Object set currentScale to lerp(self.currentScale, self.targetScale, dt*8)
                   Object set scale to currentScale 
    [/code:2hb5lnnk]
  • Lordshiva1948 , really, what's the point of posting the link to hundreds of demo projects without any description/index?

    What exactly people are supposed to do with it?

    If there is a project that's relevant to this post, you should give the direct link to that file. Otherwise what you are doing is basically spamming.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • RioLuk

    Try to invert the condition:

    sprBullet on collusion with sprEnemy

    Also don't forget to destroy the bullet too.

  • This should be easy.

    Touch is touching Wheel

    ------------------> Ship set angle to angle(Wheel.X, Wheel.Y, Touch.X, Touch.Y)

    You can add lerp for smoother rotation:

    Ship set angle to anglelerp(self.angle, angle(Wheel.X, Wheel.Y, Touch.X, Touch.Y), dt*8

    By the way, the best Asteroids game I've seen is Pew Pew. It's so cool!

    https://play.google.com/store/apps/deta ... wpew&hl=it

  • I'm probably doing something stupid and will soon feel like an idiot...

    Yes, I think you will

    You put AJAX.LastData in quotes.

    Simply remove the quotes.

  • If you mean "Override high DPI scaling" setting on Compatibility tab in C2 shortcut - I tried this and it didn't help.

    In fact, I tried all compatibility settings and none of them made any difference.

  • Try saving the file to disk, open in Notepad, save with UTF-8 encoding, then re-import it to your project.

    This worked for me.

  • Try Physics behavior.

    On Touch - apply impulse at angle angle(Touch.x, Touch.y, Ball.x, Ball.y)

  • What minefield game?

    This one?

    https://www.scirra.com/arcade/puzzle-ga ... weepy-8557

    (there is a link to download the source project)

  • Added a button, on click -> Browser go to URL.

    Opened the project in preview mode on mobile.

  • Browser -> Go to URL "https://www.google.com/maps/search/?api=1&query=pizza"

    This works on my Android phone.

    According to the documentation:

    [quote:zcw34zck]On an Android device:

    If Google Maps app for Android is installed and active, the URL launches Google Maps in the Maps app and performs the requested action.

    If the Google Maps app is not installed or is disabled, the URL launches Google Maps in a browser and performs the requested action.

    On an iOS device:

    If Google Maps app for iOS is installed, the URL launches Google Maps in the Maps app and performs the requested action.

    If the Google Maps app is not installed, the URL launches Google Maps in a browser and performs the requested action.

  • jobel

    I believe badmoodtaylor was asking about using multiple array instances vs multiple array objects.

    I don't think there are any differences in terms of performance. Use whatever method is easier and more convenient.

    If different arrays have different purposes - use multiple array objects.

    If you want to attach an array to every instance of some other object (for example Enemy sprite + EnemyStats array), you can add them both to a container. This way each EnemyStats instance will be created automatically and will be linked with its Enemy instance.

  • I don't understand this dialogue system, so my solution could be wrong, but I think the problem is with event #19, it's at the wrong level.

    Try moving event #19 like this:

    Also, check out this dialogue example (there are working download links in comments):

  • It's called picking, and it's the most important concept in Construct programming.

    Use events to pick instances of slime1 object.

    In your example "On collision" event picks 1 instance of slime and 1 instance of bullet. Inside this event you can only control these instances.

    There are lots of events that can pick instances, say "Slime1 is visible" event will pick all visible instances.

    "System -> For each slime1" event will loop through all slime1 instances, picking one instance at a time.

    If you don't pick any instances in the condition (left) part of the event, than everything you do in the action (right) part will affect all instances!

    And by the way, read my comment above about families. You should add all your bullets to a family, and remove duplicate "On collision" events.