megatronx's Recent Forum Activity

  • OK, here's mine.

    Bullet is on screen
    For each bullet
    distance(bullet.X,bullet.Y,tile.X,tIle.Y) < 10 - destroy bullet.[/code:2jcwo9il]
    
    Of course you can replace 10 with any other number that works best for your set up. 
    
    Now I'm not sure if Bullet is on screen & For each bullet are necessary. You will have to test how it works without one or both of them. I'm using For Each often, because otherwise event applies to all instances of same type ( I'm bit confused about this since @Ashley wrote somewhere that it is working like a loop even without a loop, but from my tests it doesn't work that way, and I tend to use for each )
    
    Another option to do is to make condition "Bullet overlapping at offset". if you set X to "-10 & 10" , and Y to "-10 & 10" too, should work ( if not try "-10  | 10"). Let me look at one of my prototypes to remind myself.
    
    EDIT@ Right, forgot that that project files got corrupted due to crash. Oh well.
  • Congrats! And thank you - it's inspiring!

  • Yeah, but to make it easier for yourself, try organizing it like this ( this is from my sheet ).

    {
    "c2array":true,
    "size":[11,5,1],
    "data":
    [
    	[	["1 Up"],		[38],[2],[3],[4]				],
    
    	[	["2 Down"],		[40],[2],[3],[4]				],
    
    	[ 	["3 Left"],		[37],[2],[3],[4]				],
    
    	[	["4 Right"],		[39],[2],[3],[4]				],
    
    	[	["5 Jump"],		[70],[2],[3],[4]   				],
    
    	[	["6 Attack1"],		[83],[2],[3],[4]				],
    
    	[	["7 Attack2"],		[65],[100],[3],[4]				],
    
    	[	["8 Block"],		[68],[2],[3],[4]				],
    
    	[	["9 Dodge"],		[68+arrow],[100],[100],[100]	],
    
    	[	["10 Item"],		[87],[2],[3],[4] 				],
    
    	[	["11 Spell"],		[32],[2],[3],[4]				]
    
    ]
    }
    [/code:1oifu70w]
  • And a few months later I'm back after having been completely immersed in Firefox OS and writing umpteen blog posts and a book on it at http://www.amazon.com/dp/B00IZUYIGO. My blog is at http://firefoxosgaming.blogspot.com/. I've come back to Construct 2 to write a series of blog posts about using Construct 2 to make games for the Firefox OS Marketplace!

    Cool

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • "Counter object" - no need for that. To make your example I would just used tiled background with one hart and write an even to set the width of it depending on how many hearts you have. That would take me literally a couple of minutes to do.

    "Path movement" - There is a plugin you can find in the plugin section that does that. U'll need to use search cause i cant remember what was it called.

    I've always choosen "makers" because I never was passionate about learning how to code. If I would decide to learn now, it would take another 3+ years of my life, just like other things I learned.

  • I'm Polish, but I'm living in uk for 8 years already, so I don't have much of a problem anymore. Although I sometimes get stuck with more complex sentences or i get blank for a moment. The biggest issue for me is grasping the English terminology used to explain how things work ( like plugins, math etc ) and i wish it would be explained in simpler fashion. Simultaneously, after all those years abroad I'm having slight problem communicating in Polish and sometimes I use English syntax or I'd be looking for a word that I know in English, but which doesn't have any equivalent in Polish! >.> Also, when I'm visiting my friends in PL, they all will have a laugh when I say a Polish word and accidentally I put on my pseudo-English accent while saying it, which sounds absolutely riddiculous coming from my mouth

  • megatronx

    In the first post there are already 2 example capx.

    https://dl.dropboxusercontent.com/u/235 ... ction.capx

    https://dl.dropboxusercontent.com/u/235 ... otype.capx

    Oh sorry, I've missed them! >.>

  • Hello,

    This looks really neat. Can we expect some sort of example capx ones the plugin will be released "clean"? Thanks

  • I wasn't logged out since yesterday so I guess things are working for me now too.

  • R0J0hound

    Thanks for this awesome plugin. I have a question thought. Is it possible to first paste layer to canvas, then chop that image in to even size tiles ( basically chop an image in to pieces) and load them one by one in to sprites?

    Also, if I copy to canvas, and canvas is on layout, it will show that image, right? I'm asking because I'm doing some tests with it and I'm bit confused on how it works.

    Thanks!

  • > Browser: On resized: Wait 0.1s, call function "position"

    >

    >

    >

    Excellent! I knew there was a quick fix. Thanks.

    Nevertheless, don't you think it should work without waiting?

    It should actually, because of the timing differences between canvas and browser resizing ( at least that's the behavior I observed when trying your capx ).

  • (Pixel perfect or instant-hit bullets)

    +Bullet.count > 0

    +For "" from 0 to 5

    -Move Bullet 60*dt in angle of Bullet

    +On loop ""

    +Bullet collides with solid

    -Destroy bullet

    Can I ask you why are you suing loop, and why 0 to 5?

megatronx's avatar

megatronx

Member since 25 Sep, 2008

Twitter
megatronx has 1 followers

Connect with megatronx

Trophy Case

  • 16-Year Club
  • 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
  • Regular Visitor Visited Construct.net 7 days in a row
  • Steady Visitor Visited Construct.net 30 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

23/44
How to earn trophies