dop2000's Recent Forum Activity

  • 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.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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.

  • You can create a new instance, and then use "Object Load from JSON Object(0).AsJSON", where Object(0) is the first instance of this object.

    Note, that "Load from JSON" restores all properties, including X/Y coordinates, so you'll have to change position of the new object after that.

  • First, don't use "Trigger once" like that. Try not to use it at all, until you have solid understanding of how events work in Construct. I've seen too many projects where "Trigger once" was used wrong and was causing some nasty bugs.

    If you want some actions to be executed once, use triggered events, like "On start of layout" for example.

    Drawing Canvas is an advanced feature and it's not required in most games. There are easier ways to draw a line, you can use a Sprite or Tiled Background object.

    If you are sure you want to draw on Drawing Canvas, you need to add it to your layout. Looks like you've added Drawing Canvas object to the project, but there are no instances of it on the layout.

  • Use "Is Between angles" condition.

    And don't use "Else", because it doesn't mean "all other instances". When the first event picks instances, "Else" event is not triggered.

    Sprite.Pathfinding.MovingAngle between 90 and 269.99
    	Sprite set mirrored
    
    Sprite.Pathfinding.MovingAngle between -90 and 89.99
    	Sprite set not mirrored
    
  • You need to organize the code correctly using sub-events:

    1 Circle is overlapping Enemy....Target set position to Player
    
    subevent:
    2	Enemy pick nearest to Player.x, Player.y
    	....Target move at angle(Player.x, Player.y, Enemy.x, Enemy.y), Distance: (Сircle.width/2)
    
    
    3 ELSE (it should be at the same level as event #1)
     Circle is overlapping Spawner...Target set position to Player
    
    subevent:
    4	Spawner pick nearest to Player.x, Player.y
    	.....Target move at angle(Player.x, Player.y, Spawner.x, Spawner.y), Distance: (Сircle.width/2)
    
    
    
    5 ELSE (again at the same level as #1 and #3)
    	....TARGET set position to (somewhere else)
    
    

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

  • See this demo:

    dropbox.com/s/rrpxnmer3gwhl88/DoubleVirtualGamepad_v3.c3p

    It's for Construct 3, but you can open it in free version of C3 (in your browser), and then copy all events to your C2 project. There are only 4 events for both thumbsticks.

  • I don't want to install all those addons, sorry. Also, you need to post .capx file, not .caproj

    Try this demo I made:

    dropbox.com/s/s6yh2grtjh34sut/EnemiesInCover.capx

  • If you want to make a "fake" hole (only change the image), you can use blend modes. In Construct 2 select File-New and search for Blend Modes example.

    If you need to change collision mask of the wall, you will have to do this with tiled background, see this post:

    construct.net/en/forum/construct-2/how-do-i-18/simple-scorched-earth-worms-ga-129595

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