dop2000's Recent Forum Activity

  • In events where several object instances can be affected (like bullet collides with two enemies) I prefer to add another sub-event "For each Enemy". This often helps to prevent some weird and hard-to-detect bugs.

    Or if you need to make sure that each bullet should wound/kill only one instance of enemy, add "System->Pick random Enemy instance" as a sub-event.

  • Touch-> On any touch start :  SpawnPointSprite -> Spawn another object -> BulletSprite
                                  BulletSprite -> Set angle toward position-> (Touch.X  , Touch.Y)
    [/code:1r7sqxi1]
    
    Also make sure that you have "Set angle=Yes" in Bullet behavior properties.
  • "trigger once if true" should work, you are probably not using it properly.

    You can do this without the "areaclear" variable:

    Enemy-> Is boolean variable Dead set 
          System->Compare two values -> Enemy.pickedCound>=10  :  Go to next level
    [/code:yp3rty5g]
    
    First event will pick all dead enemies.
    Second sub-event will compare number of picked instances.
  • First issue - change your event to this:

    if Enemy has LineOfSight to player -> Set Enemy angle to Anglelerp(Enemy.Angle, angle(Enemy.X, Enemy.Y, Player.X,Player.Y), dt*4)

    Number "4" here is the speed of rotation.

    Second issue - after 1 second you can move your enemy to this position:

    MoveTo ->

    X=Player.X + choose(-1,1)*random(20,50)

    Y=Player.Y + choose(-1,1)*random(20,50)

    This will simply move the enemy to a random point around the player within 50px, but not closer than 20px.

    Or, if MoveTo behavior has "Move at angle" action, you can do something like this:

    Set dist=distance(Enemy.X, Enemy.Y, Player.X,Player.Y)*random(0.2,0.5)

    Move (dist) at Angle (angle(Enemy.X, Enemy.Y, Player.X,Player.Y) + choose(-1,1)*random(30,60))

    These formulas are just off top of my head, may not work very well.

  • Sure, just add a global variable JumpEnabled=0

    On Key pressed "Space" change this variable to 1

    Add a second condition to your "player > platform is on floor > player > Simulate platform pressing jump" event:

    System->Compare global variable-> JumpEnabled=1

    (to add another condition, select this event and press "C")

  • If you can't open the capx, rename it to .zip, unzip to an empty folder, open .caproj file in Notepad and edit this line:

        <saved-with-version>24700</saved-with-version>
    
    For example change to:
        <saved-with-version>24400</saved-with-version>
    [/code:1dq0e90q]
    
    Then open it normally in C2.
    
    To speed up objects in C2 you can use System->Set Object Time Scale. This will speed up (or slow down) everything related to this object - animation, timers etc.
  • NECRONOMICRON

    It's a completely different kind of game. The light ray is moving (growing) slowly and you need to place mirrors on its path. And all this in isometric projection.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Please reload the capx, I made some more changes.

  • You really need to read a few tutorials and look at some examples of other people's projects.

    This will save you a lot of time!

    You should not create dozens of identical sprites! This is the biggest and most serious problem with your project. Don't do this!

    Create just one sprite and make lots of its instances.

    Learn to use instance variables.

    Learn to use functions.

    Define correct collision polygons and image points in your sprites.

    I fixed some of these issues in your project and optimized your code a lot.

    As for the ray reflection, it still needs some work, I didn't have time to finish it. See my comments in the event sheet.

    I don't think Light plugin can be used in this game, so I removed it.

    Here is the capx:

    https://www.dropbox.com/s/879vyvyxsxi0g ... .capx?dl=0

  • Your link is broken.

    Try posting it without the "https://" and make sure it's not get shortened.

  • kentoy

    What's "H5"?

    I haven't tried this, but there are 2 plugins to convert images to/from string (which you can save in local storage):

    viewtopic.php?t=68494&start=0

    viewtopic.php?t=68521&start=0

    Links in those posts are dead, you can download the behaviors from github:

    https://github.com/JohnnySheffield/C2_Plugins_Pode

  • You do not have permission to view this post

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