Yarfapet's Recent Forum Activity

  • Bud, let me tell you a little something. If you think people are just going to run around giving you completed games for you to salvage, you are in the wrong biz.

    As scidave said, your best bet is to look at tutorials and .caps (Source codes basically). A project I've been working on for a while (And have started over several times) was all started around a single example done by a use on this forum. And if you can't find anything on what you want:

    A. Ask questions about what you want (In pieces)

    B. Figure it out yourself

    C. Give up and try something else.

    Besides, as anyone who messed with game making could probably tell you, snatching "specific game mechanics" is actually bad idea, limits creative freedom. And step one, experiment and put some hard thought into what you really want to make. As for graphics and stuff, you don't need stuff specifically made for construct; if you can't find it, make it

    This is something I'm working on, as you'll notice, it's not even close to being done. Yet, because I know exactly what does what, I know what's missing and how to add to it.

    P.S.: Not giving you the source code for that. But if you

    look a bit, you'll find my inspirations.

  • I'm sorry, I probably should have clarified a bit more. First of all, this is for a 3D project that uses overhead maps for collisions. The height I'm referring is Y, but it's 3D Y. What I'm trying to figure out how to do is find the 3DY of any point on a ramp where one end is higher than the other, knowing the XYZ of both points and the angle between them. Obviously if you ran perpendicular to ramp you wouldn't be any higher or lower.

    I did figure out some of it last night. What I was first asking is this: if I had a wall facing at an angle, knew a point it intersected, and knew my location, how could I tell how far I was from it?

    (Cos(Wall.Angle)*(Player.X-Wall.X))+(Sin(Wall.Angle)*(Player.Y-Wall.Y))

    Same basic thing

    Thanks for your help

  • I'm not sure if I'm even using the right term for this (Probably not), but I wanted to know if it was possible to do this.

    With knowledge of the height at the Beginning(green) and End(red) points, the angle of the object, and that there will be a linear change in height across the object (As signified by the gradient). Could you calculate the height at any point on this object? If so, how

    <img src="http://dl.dropbox.com/u/10316081/Construct/picture1.png" border="0" />

  • Actually no. The original system doesn't (At least with 3d box), and the one I'm suggesting wouldn't work with a simple "Reset after 360" since a rotation on Yaw at one point could be completely different at another.

  • As someone who likes screwing around with 3D, one thing I think would make construct much more flexible with 3D without making it much more complicated would be an applied rotations system.

    It would essentially work like this:

    Suppose you had a game with ball (With a star on it) and overhead view. All you have to do is get the ball in the goal, and you win. Sound simple?

    One problem, how the heck do you animate the ball? You could do in 3D, but the current rotation system would make this a coding nightmare. Your ball rolling up and down (Pitch) would be fine, but the left and right(Yaw) would get screwed up by the pitch. Doing this in 2d would only add the nightmare of animating the ball as well.

    Anyway, an applied rotations system would be a bit different. Instead of changing the the Yaw Pitch and Roll. It adds it on top of everything else.

    You could say

    Rotate Yaw by 25 degrees

    Rotate Pitch by 30 degrees

    Rotate Yaw by -10 degrees

    Or in the examples case:

    Rotate Yaw by 3DBall[8Direction].VectorX

    Rotate Pitch by 3DBall[8Direction].VectorY

    And it would do the rotations in that order, and do those same rotations every frame. But that leads to an issue where rotations are recalculated every frame, since the math would just stack up on itself. A fourth command is necessary.

    Reset Rotations

    Done every frame proceeding actual rotations, and you essentially have the old system, with a huge degree (Of being able to decide rotation order) of control added. This would certainly make giving life to 3D elements in a game a bit easier and allow for more complicated designs. Sorry if I stretched this out a bit

  • GAH! So sorry. Completely slipped mind.

    Here's the files

    dl.dropbox.com/u/10316081/Construct/Rocket%20Cat.rar

    Note: Any one is welcome to use these in examples, but no large projects, and certainly nothing commercial. Attribution as used would also be nice.

  • I guess I'm going to have to get used to the change. I always used animation angles.

  • {
         float2 t = Tex;          
          float x = t.x * t.y * round(frameCounter/ Speed);
          x = fmod(x,Mod) * fmod(x,Mod);     
          float dx = fmod(x,XSize/100);
          float dy = fmod(x,YSize/100);
          float4 c = tex2D(foreground, t + float2(dx,dy));          
          return c;
    } 

    Nice Plugin BTW

    EDIT: I guess you could also take out the round if you wanted something more fluid. But noise has never struck me as being such.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • At one time I was thinking about how to make a 3D animated character, I quickly realized that having a limbless character (A Rayman styled one) would make 3d animation much easier, and you could simply use the model switch trick when you needed to say switch hand positions or something. Rojohound's new plugin pretty much solved the texture half of the issue. I was unfortunate to learn about halfway through designing a 3d camera system (And this a while ago) that constructs 3d object rotation's reliance on eular angles pretty much sinks the idea of being able to competently do even that kind of animation without a borderline inhuman amount of calculations.

    This was going to be the star BTW: http://dl.dropbox.com/u/10316081/protocat.PNG

  • No prob. BTW, this just dawned on me now. But if you ever wanted to clean up your code further, you could always put all the aicars in a family and reference the family instead of the individual cars, then you'd only have to write the code once.

    Construct, one heck of a gradual learning process.

  • First I can tell you that having Always is redundant when it's surrounded by other conditions. Secondly I'd recommend making a single waypoint object and giving them each a value dictating which one they are.

    Third, make it so when the waypoint's value equals the car, that a waypoint should be added to it.

    Finally, make it so when the car overlaps a point it sets the car's value to it's value+1

    I think that should do it.

    EDIT: Oh, and if car's value=31, set to 1

  • 64bit install is OK! My day has pretty much sucked, so this was nice surprise.

Yarfapet's avatar

Yarfapet

Member since 6 Mar, 2010

None one is following Yarfapet yet!

Trophy Case

  • 14-Year Club
  • RTFM Read the fabulous manual
  • Email Verified

Progress

16/44
How to earn trophies