dop2000's Recent Forum Activity

  • In loops you can use loopindex expression. If loopindex<10, set type to 0, etc.

    Or do the same with ternary operator:

    Enemy Set type to (loopindex<10 ? 0 : loopindex<15 ? 1 : 2)

  • To scroll in the middle of two players use lerp(player1.x, player2.x, 0.5)

    If you need to zoom out when players are far away from each other, you can set layout scale to something like this:

    min(1, (ViewportRight("HUD")-ViewportLeft("HUD")) / (abs(Player1.X - Player2.X)*1.1))

    Where "HUD" is a layer with Scale Rate=0.

  • Should each enemy flash separately from others? Or all enemies flash at once, synchronized?

    If each enemy has its own flash cycle, then the easiest solution would be creating a single animation RED-BLUE-RED-BLUE-red-blue-red-blue-red-blue-red-blue, and loop it. Set speed=2 for the first four frames and speed=4 for remaining frames. No events will be required.

    To get the current color use AnimationFrame%2 expression, if result=0, it's red, if result=1, it's blue.

    Or you can make an animation with two frames RED-BLUE, looping, and run a timer for 2 seconds on each enemy. On timer change speed of the animation (make it faster or slower).

    .

    If all enemies should flash simultaneously (synchronized), then you can do this with global variables. Add a global variable CurrentColor (may be "red" or "blue"), set animation to this variable for all enemies, and also when a new enemy is created. Every 0.5 or 0.25 seconds toggle the value. Every 2 seconds toggle the speed.

  • No! Simply start Remote Preview in Construct 3, it will give you a link, open that link on your phone. Takes 5 seconds.

  • What event should I look at? Please explain the problem.

    Your game doesn't work for me, there is nothing but black screen. And it shows this error in browser console:

    Uncaught (in promise) TypeError: Cannot read property '_GetLastCachedZIndex' of null

  • Yes, Button object under Form Controls. If you are using it, it has its own "On clicked" event which will also work on touch screen.

    But there are many problems with form controls (for example it's quite hard to change their appearance), and in many games it's better and easier to make buttons with sprites or text objects instead.

    By the way, you can easily test your game on touch screen of your phone using "Remote preview" option.

  • Save Sprite.AsJSON in a variable. Then create a new sprite instance, and do "Sprite Set from JSON", it will copy all properties from the original sprite, including position, angle etc.

  • Are your btnYes and btnNo objects of "Button" type? In this case don't use Touch events for them. Use btnYes -> On clicked event instead.

    If they are sprites, change events to Touch-> On touched object. "On touched" is a triggered event, it's triggered only once, which is what you normally want for menu buttons, toolbars, settings icons etc.

    "Is touching" is a continuous event, it's executed many times per second, while the finger is touching the object. You should use it for controls like a virtual joystick, firing button etc.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • In Construct 3 there is a native plugin for that.

    In Construct 2 you can do this with User Media -> Start recording canvas. Although, I don't know if you can record only part of the screen.

    scirra.com/manual/144/user-media

    If you need a very short low-framerate video, you can also try to do this with Paster of Canvas addons. Paste objects or layers onto the canvas, then load this image from the canvas into a sprite, as a new frame. Repeat several times.

  • You are probably picking one enemy in this event. Try adding "System pick all". For example:

    Bullet on collision with Enemy
    	System pick all Enemy 
    		Enemy Flash...
    

    If this doesn't help, please post your code.

  • It would help if you could explain what kind of game you are trying to make and post your project.

dop2000's avatar

dop2000

Member since 26 May, 2016

Twitter
dop2000 has 260 followers

Connect with dop2000

Trophy Case

  • 8-Year Club
  • Entrepreneur Sold something in the asset store
  • Jupiter Mission Supports Gordon's mission to Jupiter
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Forum Hero Made 1,000 posts in the forums
  • Forum Wizard Made 5,000 posts in the forums
  • Forum Unicorn Made 10,000 posts in the forums
  • x5
    Popular Game One of your games has over 1,000 players
  • x2
    Coach One of your tutorials has over 1,000 readers
  • Educator One of your tutorials has over 10,000 readers
  • Regular Visitor Visited Construct.net 7 days in a row
  • Steady Visitor Visited Construct.net 30 days in a row
  • Enduring Visitor Visited Construct.net 90 days in a row
  • Unrelenting Visitor Visited Construct.net 180 days in a row
  • Continuous Visitor Visited Construct.net 365 days in a row
  • RTFM Read the fabulous manual
  • x3
    Quick Draw First 5 people to up-vote a new Construct 3 release
  • x13
    Great Comment One of your comments gets 3 upvotes
  • Delicious Comment One of your comments gets 10 upvotes
  • Email Verified

Progress

28/44
How to earn trophies