smitchell's Recent Forum Activity

  • Ashley there is not that many events. There is currently 60. Its more my idea/art being stolen or copied that im worried about..

    Can i email it to you?

  • Ok i'll try reproduce it without my assets ect.

  • There is currently a multiplayer plugin being developed.

    Follow the thread here: scirra.com/forum/multiplayer-demo-in-c2_topic47724.html

    And yes im sure you can. But i would require some server side scripting.

  • Ashley

    Can I just PM the one im using right now to you?

  • Awwwwwwwww!!!!! but I really need space [:'(]

    Could you suggest another key that would feel comfortable?

  • ps The reason I have not provided my capx is because its for the comp..

  • I think i found a bug in the platform behavior.

    I filed it as a bug, But i'll make a thread here to see if someone knows a work around.

    Basically im using the platform behavior.

    I have set custom controls up with it.

    I also have a variable for each parameter of the behavior <-- Because im cool [8)]

    I have one im using that's pretty important. Im using a max and min speed variable (originally just one var, But because of this issue i now have 2)

    If the spacebar is down then im setting players speed to MaxPlayerSpeed(600)

    If its not down, then im setting players platform speed to PlayerMinSpeed(300)

    Im basically making the player sprint.

    But the problem is if he is sprinting and i press up to jump whilst running right it works fine, But im sprinting and i press jump and he's running left it doesn't jump..

    Any ideas/solutions as to why?

    Thanks.

  • Hi guys, Im making my game for the rotary competition and i ran into a problem, I need to have a running and sprinting state, simple right? Well no.

    I have a variable called PlayerMaxSpeed, Set to 300 normally. When the keyboard button is triggered to sprint is down then im setting it to 600 then invert the same event and set it back to 300. So if keyboard key is down set it to 600, if its not then set it to 300.

    But when im sprinting with the right arrow key down, and then i press my jump button it works, The player will jump perfectly.

    But if im sprinting with the left arrow key down, and then i press my jump button the player does not jump!!

    I tried soooooo many different ways to get this working but nothing. I tried a boolean for is sprinting, set platform vector y, space is down, left is down, and up is pressed. And many other ways that i cannot even remember but nothings working...

    And i really need this to work? Any one got a work around?

    ps i do not want to share my capx as its my comp entry and its pretty full..

    Ashley any ideas?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • HTML5 is supposed to be taking over AS3 and flash. Thats why i moved to C2 i was a flash developer <img src="smileys/smiley4.gif" border="0" align="middle" /> And as much as i love flash, its old technology it can't live for ever.

  • you can allways use the wait action if you need it to wait a little longer before disabling..

    And yeah sure i'll be happy to test it <img src="smileys/smiley1.gif" border="0" align="middle" />

  • As you know there is a distance expression, its asking for 4 values: x1, y1, x2, y2.

    Every sprite has a x and a y position, The distance expression helps determine the distance between two sprites.

    So for example if you want to see if the player is near the wall using distance you can do something like this:

    add a system.compare 2 values event.

    Then on the top value do something like this but with the objects you want to compare:

    distance(Player.x, Player.y, Enemy.x, Enemy.y)

    then add a if less or = to 100, that will see if the player is within a distance if 100 to the player, Then add your other events/actions to do what you need to do <img src="smileys/smiley1.gif" border="0" align="middle" />

    Let me know if you need anymore help <img src="smileys/smiley4.gif" border="0" align="middle" />

  • Here ya go: dl.dropbox.com/u/51270524/jumpThroughFixed.capx

    Its not 100% perfect but it will do, It takes a couple milliseconds to kick in but it works no need to press the jump button again.

    Honestly its probably better it takes a few milliseconds, It gives the player some time to jump if its falling..

smitchell's avatar

smitchell

Member since 25 Nov, 2011

None one is following smitchell yet!

Connect with smitchell

Trophy Case

  • 13-Year Club
  • x2
    Coach One of your tutorials has over 1,000 readers
  • Educator One of your tutorials has over 10,000 readers
  • Email Verified

Progress

16/44
How to earn trophies