dop2000's Recent Forum Activity

  • Wossi

    Try not to use pin, bullet, sine or any other similar behavior with Physics object.

    It's an official recommendation from Scirra:

    it is highly recommended to control Physics objects entirely via the Physics behavior (by setting forces, impulses, torques etc.), rather than trying to manipulate objects by Set position, Set angle etc.

    (...) For example, setting an object's position or angle will cause Construct 2 to teleport the corresponding object in the physics simulation to the object's new position, which does not always properly take in to account collisions. The same is true of using other Construct 2 behaviors at the same time as Physics.

    I don't know if it's applicable in your game, but maybe you could disable physics behavior when it's not required, then you can manipulate objects with Sine, Bullet etc. Re-enable physics when it's needed.

    If you are only using physics for its gravity, you can try Bullet or Platform with gravity instead.

  • #5 is one leaderboard for each chapter (a group of 10 levels). So 20 leaderboards in total.

    I was thinking that high score in this leaderboard will be a sum of scores in all 10 levels of the particular chapter.

    Are you saying that I should make 200 leaderboards instead?

  • Project -> Files -> right click -> Import files

  • This task shouldn't be too hard.

    When a second touch is registered, save distance between two fingers in a variable.

    Then on every tick calculate new distance between two fingers and adjust zoom accordingly.

    Make sure that none of the other touch event in the game are triggered while player is zooming.

  • I tried it before posting - a loop with 360 LoS checks on every tick, I was getting steady 60FPS.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • CSV plugins are great, I'm using them a lot in my games:

  • Swallowing - you can do it with animation, create a sequence of frames where the enemy is getting smaller. Run this animation and move enemy towards the player with bullet behavior. At the end of animation, destroy the enemy.

    Or use Sine behavior to change scale.

    Or you can do something like this:

    For x=1 to 10
        Wait loopindex*0.1
        enemy Set Scale to (1-loopindex/10)
        enemy Move at angle (angle(enemy.x, enemy.y, player.x, player.y)) distance (10)
    [/code:2tfq2ixj]
    
    It's just a random example, you may need different values for wait, distance etc.
    
    Spitting - you can simply create a smaller clone of enemy sprite, add Bullet behavior and shoot it as any other bullet. 
    (see Shooter sample projects in C2)
  • newt

    Is there ObjectB?

    I thought facecrime wanted to find a random point on the layout not visible to character. Probably to spawn an enemy there or something like that. Maybe I misunderstood the question.

  • Here you go:

    https://www.dropbox.com/s/5z3l8ud2nn2uj ... .capx?dl=0

    I optimized your code and layouts a bit.

    Global variables were probably not the best choice for storing these values.

    You can replace them with a dictionary. This will allow you to access any of them by ID, for example:

    MyDictionary Set Key ("Value" & Str(slid_line.ID)) to 70

    With dictionary you'll be able to loop through values, easily save to local storage etc.

  • I would do this:

    RADIUS=   [minimum distance from the character]
    r=int(random(360))
    For x=r to r+360
       xFound=character.X+RADIUS*cos(loopindex)
       yFound=character.Y+RADIUS*sin(loopindex)
    
       Character has NO LoS to (xFound, yFound)
            Stop loop
    [/code:2a553ctr]
    
    This will give you a random point at RADIUS distance. (a random line out of sight) 
    Then, if you wish, you can move this point further from the character along this line.
  • Set X to

    slid_line.X+unlerp(slid_line.minVal,slid_line.maxVal, Value0 )*slid_line.Width

    And, of course you need to pick each slide bar and use different variables in the formula - Value0, Value1 etc.

  • Try adding debug output ("Browser->Log") to these events, to make sure they are triggered at the right moment.

    If they are triggered, then maybe your rolling animation gets overridden by a different animation - idle, walking, running etc.

dop2000's avatar

dop2000

Member since 26 May, 2016

Twitter
dop2000 has 247 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
  • x4
    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