dop2000's Forum Posts

  • You need to also restart layout. However, if you have any global objects (like arrays, dictionaries etc.), they will not be reset. Also, static local variables will not be reset. You'll have to clear/reset them one by one with events.

  • You can simply use Pin behavior to attach all parts to the main plane sprite.

    But, if you are using Physics, pin will not work correctly. You can try joints, or enable Physics only for the main plane sprite, and not for its parts. This way you will still be able to pin them to the plane.

    Container is used to "logically" connect a group of objects. The plane and all its parts can be in the same container, but you'll still need to pin them together.

  • I think you need to use a family. Instead of having two almost identical blocks of code for two objects, it's much better to combine them into a family.

    scirra.com/manual/142/families

    scirra.com/tutorials/535/how-to-upgrade-an-object-to-a-family

  • You do not have permission to view this post

  • Create a new sprite Camera with ScrollTo behavior, remove this behavior from the player.

    On every tick set Camera position to

    X: clamp(Player.X, Rectangle.BBoxLeft+ViewportWidth("Platfomer")/2, Rectangle.BBoxRight-ViewportWidth("Platfomer")/2)

    Y: clamp(Player.Y, Rectangle.BBoxTop+ViewportHeight("Platfomer")/2, Rectangle.BBoxBottom-ViewportHeight("Platfomer")/2)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I don't know why you need my help there. 7Soul has given you a perfect explanation.

  • Please read this post:

    construct.net/en/forum/construct-3/how-do-i-8/best-help-tips-forum-139528

    We can't help you without seeing your project file or a screenshot of your code.

  • You can do this with NWjs, put all the save data into a string and write it to file.

  • This is probably because you have a huge sprite font and displaying it at 6% scale and -10.5 spacing. When I set spacing to 0, this doesn't happen.

    Try to reduce the size of sprite font image, so you won't have to use negative spacing.

  • To set the target in front of the player you can modify your code like this:

    Target set position to Player
    	Target move at angle
    		Angle: Player.8Direction.MovingAngle
    		Distance: (Сircle.width/2)
    

    Or you can simply pin the target, if you don't need to auto-aim it at enemies.

  • What do you mean by follow? Follow behind the player, or above the player? Is this a top-down view game? Which behavior are you using for player movement?

    If you set the circle to player's position, or pin it to the player, then of course your code will not work, because there is no angle between these two sprites.

  • That's odd, it works fine for me:

  • You can pin sprite A to sprite B at a distance, and then rotate sprite B.

    Or you can use Bullet and on every tick change moving angle, for example:

    Sprite set angle of motion to (self.Bullet.AngleOfMotion+10*dt)
    

    Or you can use these formulas for circular motion:

    Sprite set X to (CENTER_X+RADIUS*cos(ANGLE))
    Sprite set Y to (CENTER_Y+RADIUS*sin(ANGLE))
    

    Simply increase the ANGLE variable on every tick.

  • Are you running Construct in browser? Try Desktop build, it used NWjs for preview.

  • I am not sure I understand your problem. So, the array contains data for 10 videos. First 6 are shown on the screen. When you scroll with mouse wheel down, you want to show videos 2-7, when you scroll further down, show videos 3-8 and so on, is this correct?

    I don't know why your code doesn't work, but you can do all this a bit easier. On mouse wheel down, remove first record from the array and insert it into the back of array. On mouse wheel Up, remove last record from the array and insert it into the front of array. This will allow you to simply display the first 6 records from the array. And you will not need loop1, loop2, loop3 variables, just use "Repeat 6 times" loop with loopindex expression.

    Also, if you put ListItem, ThumbImage and Checkbox in the same container, you will only need to pick ListItem, the other two objects will be picked automatically.

    And, if you are not doing this already, start using Debug Mode, it will allow you to monitor the array contents, all objects etc.