Yarfapet's Recent Forum Activity

  • By all means post it

  • Sorry, my bad, I meant the object bar.

    You didn't have to delete MWall2s. The WWall2 was the problem. The instruction I gave were to replace it. Mind you, you are going to get error if a map or world object doesn't have a counterpart. Are you sure you deleted all the blue blocks?

    Anyway, I've fixed the cap. So just redownload it.

  • > It's a bug, easy fix though. Just delete the original (Had to click it on the tool bar or Construct would crash). Then make a clone of the other blocks, container it with the blue map blocks, paint the 3d one as you please, and you should be good.

    >

    > All you need to do to create new map pieces is create an object with a map family and one with a world family, set the world to destroy on startup ,and container them together and the rest will sort itself out.

    -------------------------------------------------------

    Any chance you could give a step by step on the above, I'm struggling to understand.

    Why do i have to clone the blocks? (is it because of the container)

    What do the blue map blocks do?

    (I have mentioned 2 things here, but i'm not 10o% sure about the rest!)

    <img src="smileys/smiley9.gif" border="0" align="middle" />

    You're cloning one of the other blocks just to save time. You could also just make a new one and apply the "world" family

    The map your looking at is an over head of the 3d world. Each of the blocks on the map represents one in the 3d world. The blue map blocks represent the blue 3d ones. If you alter the position or size of one, the 3d one will change accordingly. All the map blocks also have two PV's for the 3DHeight and 3DY. The latter being where the bottom of the block will be the later how high it extends upward.

    The map is calculated at 1/4 world space to save space. So a map block 16px wide would create a 3dblock 64px wide. This does not apply to the map objects's private variables,

  • It's a bug, easy fix though. Just delete the original (Had to click it on the tool bar or Construct would crash). Then make a clone of the other blocks, container it with the blue map blocks, paint the 3d one as you please, and you should be good.

    All you need to do to create new map pieces is create an object with a map family and one with a world family, set the world to destroy on startup ,and container them together and the rest will sort itself out.

    Edit: Cap should be fixed now.

  • Thanks for sharing his Yarfapet.

    Im gonna see if a can work how the math works. <img src="smileys/smiley4.gif" border="0" align="middle" />

    One thing i did get was an error message when i clicked on(selected) one of the 3d boxes(not during runtime)...but it doesnt crash, it just gives a warning?

    What did the warning say?

  • Went ahead and posted the cap in my first post for those who are interested.

    Anyway this cap relies on a formula I'm not even completely sure how it works, but it does. The formula can be found here.

    Obviously, a few tweaks were made since this formula is meant to give the location of points, not objects with rotations; not mention the formula makes the center (0,0) instead of the top left. The formula for rotations was mostly guesswork, although it wasn't much different than it was for the single-axis-3dcameras that occasionaly permeate this board.

    I should mention,there's a bit of a bandaid coding with camera pitching. The camera actually starts pointed at the sky (Or is it the ground?), if you catch my drift. It was a bit easier to code that way.

    One of the big downsides to having a psudo-camera is that is makes rotating objects on a world basis with more than just yaw a huge challenge to implement with the tools construct offers. Since world rotations come before camera induced ones and construct is limited to a yaw-pitch-roll order of rotations, you can sanely do Yaw(Wld+Cam)-CamPitch, but not Pitch(Wld)+Yaw(Wld+Cam)+Pitch(Cam).

    Python and Speed

    Python has really been a timesaver, it's kinda nice being able to find and replace small parts of code without turning all of it into a warzone. The other great thing is that done right, it works with families, so I could possibly even make a formula and apply it to all 3d objects, sprites, and boxs, with only 3 lines of code.

    Although from what I've heard, behaviors and plugins are the faster and less intensive. So I would probably say that any large project would definitely need them, either that or real 3d camera support.

    chris, I would really like to see what inventive thing you cook up with this, and I would have no problem elaborating further on this and some other little experiments I've done if you're interested. <img src="smileys/smiley4.gif" border="0" align="middle">

  • I'm not aiming for anything in particular, I'm mainly trying to see how many resources this kinda construct game would consume*. As I mentioned, this exe uses python. I would like to also make another version of the exe that only uses events, then see if one performs better than the other.

    *Part of what I'm working is a 3d framework for games, so I guess you could say I'm aiming for something that's ultimately functional (60fps on a mid sized level), but also easy to edit. Once I get more of it done, I'll may post caps.

  • This is another little 3d experiment of mine. I had a bit of fun toying around in python and got this. However, I'm concerned with the speeds I'm getting, wondering if it's just my computer, Construct itself, the 3DBoxes themselves, python, or just my own bad programming killing speeds. Right now I'm doing 60-80fps, and taking away all but a few objects only yields about a 40fps gain.

    Anyway...link: dl.dropbox.com/u/10316081/Construct/3DEngTest/3DEngTest.rar

    Mouse angles camera

    WASD Movement

    QE   Elevation

    Edit: Would everyone be kind enough to tell me what kind of speeds they're getting?

    Edit 2: The cap, dl.dropbox.com/u/10316081/Construct/3DEngTest/Python3dtest.cap

    You will need lucid's mousemovv plugin

  • Thanks, that worked perfectly

  • When you use families in python, how do you make it acknowledge all families instead of just the first? I've already figured out you can make python use all instances of an object with "for n in range(Obj.Count): Obj[n]" but it'll only use the first family.

    I also did a bit of testing earlier with lucid's py picker plugin and found the instance numbers reset with each object in the family.

  • I posted this on the bug tracker a while ago, but never got a response. Does anyone know a work around for this/could this be fixed in a future build?

    dl.dropbox.com/u/10316081/custompushout.cap

    Thanks in advance

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thanks for the help, I got it working. Here's what I ended up using.

    Lerp(Stairs('StartH'), Stairs('EndH') ,(((Cos(Stairs.Angle)*(Camera.X-Stairs.X))+(Sin(Stairs.Angle)*(Camera.Y-Stairs.Y)))/Stairs.Width))

    Really similar to what Lucid posted except it used the wall distance formula I posted above (Meaning the stairs can be any angle), and didn't have to use gett because of that. And an exe showing what I was aiming for

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