oraflame's Recent Forum Activity

  • I'll try the first thing out and see if that works, but otherwise I'll try creating my own platform engine with events. Efficiency is needed for something like this as the game is four players and might possibly be up to 8 but if it's an issue that only creating my own player engine would fix then might as well.

  • It works! My only complain is that there seems to be an issue when ever there is a ceiling type of solid next to a wall as for whatever reason when it comes into contact with the edge of the slope it gets pushed down jarringly in a direction that is not the slope? I suppose detection of the angle like I mentioned before would fix this but I messing around with it myself makes me unsure

  • For my Smash Bros. Clone, I'm attempting to get something like this functioning in the game, as in Smash this is obviously as characters attempting to recover will slide against the ceiling of a surface when getting close to ledge, it's just a matter of how. I tried my best to explain it below, but if you guys could help me step in the right direction as to how to get something like this working, please let me know.

  • Subscribe to Construct videos now

    Hey everyone. Over the last few years I've learned a lot about using C2 and all of it's capabilities. Right now, I've gotten pretty far with a Smash clone. The only issue is I'm not sure how to go about creating an computer player system. The game is made to run with only one Player object, with various variables to determine what player they are, etc. I know line of sight may be something to be used, but with the way the engine works I'm unsure. Any ideas of an approach?

  • You do not have permission to view this post

  • X=100*cos(ang)

    Y=100*sin(ang)

    For any angle.

    Seems like this is what I was looking for, much appreciated.

  • That is useful for hitting a surface and getting the angle for that, but I mean like adjusting vector x and vector y to move in a certain angle.

    For an example, if a player was hit in a certain direction the velocity would be set accordingly. This is fairly straight forward for 8 basic directions, but I was wondering how I could do the angles inbetween.

    Knockback (K) = 100

    Left - Vector X: K*-1, Vector Y: K*0

    Left Up - Vector X: K*-0.5, Vector Y: K*-0.5

    Up - Vector X: K*0, Vector Y: K*-1

    Up Right - Vector X: K*0.5, Vector Y: K*-0.5

    Right - Vector X: K*1, Vector Y: K*0

    Down Right - Vector X: K*0.5, Vector Y: K*0.5

    Down - Vector X: K*0, Vector Y: K*1

    Down Left - Vector X: K*-0.5, Vector Y: K*0.5

  • I'm trying to recreate the knockback system from the Super Smash Bros. series, but I'm a little confused as to how I might be able to input a angle that the character has been hit in and depending on knockback speed get sent in that angle with the necessary vector values. Any suggestions?

  • So I tried it, and it didn't work. Perhaps you could provide an example dop2000? I'm not sure if I know how to execute your ideas.

  • There may be an easier way. You can add a border around the edges of the screen, using invisible sprites for example. Then cast a ray from the center of the screen to the target, using Line Of Sight behavior. Detect where the ray hits the invisible border, and position your magnifying glass in that point.

    I actually did something similar to this, but without the Line of Sight behavior. I actually used the if overlapping condition, but I'll try this out.

  • So I went ahead and messed around with it, and for some reason it didn't seem to work well with a multi-layered scrolling layout with the camera scaling like a Smash Bros. game. I'm not sure what to do...

  • Yes thank you, I may need to rework it for the platform fighter but this should work

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
oraflame's avatar

oraflame

Member since 16 Mar, 2019

Twitter
oraflame has 3 followers

Trophy Case

  • 5-Year Club
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

8/44
How to earn trophies