WPGamer's Forum Posts

  • [attachment=0:2mblna14][/attachment:2mblna14]

    I've been having the worst problems with saving stuff on C2 lately. Here's one that should work. I couldn't get yours to re-save so I just built a small demo so you get the concept.

  • Ok, for that you do:

    While touching: make jump

    (subevent) On any end touch: Set Y vector to -50(or whatever negative number you want)

  • [attachment=0:2ni4bdyk][/attachment:2ni4bdyk]

    Set the jump to the smallest jump you want. Then have a "on touch" that adds + 1 to the jump every tick.

  • OOookkkkk Here we go

    [attachment=0:rlg2cv6g][/attachment:rlg2cv6g]

  • Damnit...Apperently I deleted it some how haha. I'll be back in 10

  • Ok, added some comments to pave the way. The only issue I've ran into is that for some reason if two badguys are overlapping the first throw works, but the second doesn't if you do it right after. However, if you throw one, go to a different one, throw him, and go back to the one overlapping it works.

    This may just need some tweeks to fix.

    Well...idk where it saved it...haha hold on

  • I'll add it to your project when I get back home, but basically you need to make a "Floor" collision box for each badguy. Then during a throw set the Y of the box to where you want his "floor" to be, and have the box following his X as you throw. 'Impulse at angle' throw him, then when he lands the physics will take care of the bounce for you.

  • Something has gotta work cause the ad SDK for 8.1 is built into VS2013. Damn you MS for not making this easier!

  • [attachment=0:14xci6d5][/attachment:14xci6d5]

    So I want to connect the Array cell number to the UID(or IID) of the grey box, and the value of the Array at that cell to the Black box UID(or IID). That way I can pick two boxes based on those numbers and automatically make them line up.

  • I'm sure this is a beginners question and I'm just missing something.

    So what I wanna do is pull info from an array and use that info to place one object onto another. I would like to correspond the cell number to one object's UID and the value info as another object's UID. Using this on a large scale with multiple instances to randomize blocks on a grid. I haven't really been using Array's so I'm kinda confused by all this.

    For instance:

    My Array's X cell 0 has the value of 23.

    So I'd like to pick a Block with the UID(or IID) of 0

    And place it on top of the Grid square with the UID(or IID) of 23

    And do this for every instance of Block there is

    Right now I have the conditions:

    Array Repeat for each X element
    Block: Pick instance with UID Array.CurX
    Grid: Pick instance with UID Array.CurValue[/code:3lajoexu]
    However that's not doing what I want. I feel I'm in the right ballpark but not sure what exactly needs to be put down in the event condition.
  • Yes and no. I was using the mainpage.xaml, but I was just using the API to drag and drop the ad where I wanted it. Outside of that the code was foreign to me.

  • sha-bump

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Something you could try is having an invisible Bar across the window. Keep the bar at the "ground level" by using an image point on you players shadow. Then you could have a variable that triggers when a throw happens.

    "Compare Throw = true"

    "On collision with bar"

    Then you just change the sine wave information to make him bounce when he hits the bar.

    Alternatively you could just set a Y coordinate that's "Player.Y + number" then do

    Compare Throw = True"

    "Compare Badyguy.Y = Player.Y + (number)"

    I haven't played with Sin waves a lot so you'll have to mess around with the settings to get figure out how to make it bounce, but that's how you'd keep them from falling off.

    And if all of that is to complicated then you could give the enemies Physics(instead of bullets or Sine) and toggle it on/off for throws and use the bar as a solid object. Then for throw you use "Force at angle" instead of move at angle , and the bounce happens on its own when it hits the solid bar.

  • I know this isn't really a C2 "How to", but this seems the most logical place.

    Has anyone figured out how to add ads to the new Universal app through VS2013? I can not for the life of me figure out how to put in an ad into my project. The old way was so simple and now I can't find a single mention of 8.1 ads outside of the "updates and extensions" window.

  • Hmmmm...nice stuff.