mordiaky's Forum Posts

  • Thank you, I thought of this, but wouldn't this start to cause performance issue later down the road with multiple objects set up like this in a rts style game?

  • I am working on a RTS that allows players to build custom ships using blocks, hull blocks, engine blocks etc. and then they can save this to build in their factory/ship yard if they have the correct resources. the ship will spawn looking just like they built it.

    How do I go about making this happen? how do I turn multiple objects into one? I thought of tilemaping and arrays for location, how do i manage the hit box per tile? what are your thoughts?

  • another way of doing this is a function with a parameter, (think of this as a switch) in the function you create parameter 0, 1, 2, 3 etc and each one plays a sound

    in your code that will call that sounds just call the function with parameter (choose(1,2,3,4,5,6) or how ever many you have.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • (object_1.var1 + object_1.var2 + ... + object_1.var10) / 10

    didn't even think of doing it that way, I solved it with what I did above.

  • I have an object_1 with instance variables. Each instance variable is set to 100 for 100%

    so 10 variables at 100%, over time these will decrease randomly, how do I get the overall condition of all 10 variables?

    I want an output of this object_1 overall condition is 98%.

    EDIT: Got it,

    make a instance variable called overall, and set every tic to set the overall to variable1 + variable2 + variable3

    then you can display it with a set text to round(overall*0.1)&"%"

  • Hello everyone

    I am having a hard time trying to get this to work, I want to do a face check north, east, south, and west of a block(32x32).

    so if block north is air(empty) change animation.

  • there is a formula you can use:

    I played around with it and kind of got it working:

  • Updated with player that spawns inside every time. wall collosions.

  • This was remade in construct 2 from Game maker, With the help from you guys I was able to translate some things over just fine! so with that I would love to share this with you if you ever needed one! and please improve and resubmit!

    Dungeon Generator Capx

  • that worked perfect!

  • ok now your on to something and I might have an even better way now, forgot about the loop index TY very much!

  • see I need the xx and the yy because it will become a value in the loop for placement, so create object at xx*32 yy*32

  • what I want is: for(x=0; x<width; x++)

    this is what I set, is this right?

  • From the look of it, it seems that lengthdir_x(len, dir) and lengthdir_y(len, dir) are basically cos(dir)*len and sin(dir)*len.

    so if i use cos(90)*len(1) it will move me down 1 pixel from my current point of reference?

  • Perfect, I think both options will work for what i need. TY for the quick response. I just love the community here!