LukeMarkBrady's Forum Posts

  • hey guys and girls. so im on full speed now with my game engine. however once again ive come across a problem..

    so im trying to make an animated tiled background much like a sprite, but since the object will be stretched out during runtime, a sprite will only stretch and distort the image. a tiled background keeps feeding the same image over and over nomatter how long i stretch it.

    anyway to animate this i needed the animation window to pop up when i edit the tiled background, and did so by changing the edittime.js.

    i changed pf_texture to pf_animation.

    i saw this on another forum so tried it and it worked, i placed all my frames into the image but now when i play my game. all tiled backgrounds in the scene show up black!

    now im not sure if ive just missed some code out in the editime.js or there is another way to do this.

    any ideas? <img src="smileys/smiley1.gif" border="0" align="middle" />

  • wow, thought i was screwed there and then i saw this. thankyou, this was just the type of thing i was looking for, ill look into when i get some free time and see how you did it

    thankyou

    oh and spexel, its not that i choose not to buy it, i simply dont have the cash to pay. student life is taking its toll <img src="smileys/smiley6.gif" border="0" align="middle" />

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • guess i cant do that feature then, any other ways i could do it?

  • right o, dont i need to be a paid member to use families?

    anyways i like the calculation you provided so ill give it a go

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

  • hey everyone, hope you all had a good weekend.

    well ive spent most of mine working on my game and as usual come across another snag. lol.

    dl.dropbox.com/u/4201143/Engine_Alpha1.01b/index.html

    -use space to spawn a new cube

    -left mouse t draw and drag out conveyor belts

    there is the basic engine so you guys and girls can check it out.

    ok so so far you can drag out conveyor belts which can move the cubes around the screen. but as you can see the conveyors are just black lines, and tbf...just ugly lol

    now my problem is if i just make the conveyor a big image, it will simply get stretched and again...look ugly.

    what i hope to do is make it so when a user drags out a line, the starting point and end point will become "caps" which will be cartoon looking ends of a conveyor belt,

    once done, the game will calculate the length of the line made and fill in the space between the caps with conveyor belt segments.

    (for example; for every 20 pixels of the lines length, add 1 segment ect)

    so this way the overall belt will look decent and overall...not stretch <img src="smileys/smiley4.gif" border="0" align="middle" />

    so what im asking is 1st off is this possible to do in construct?

    secondly how would i even begin at pulling off this mystery lol

    thankyou

    L.M.B

  • that is perfect! its exactly the way i wanted it. i can now get on and do some level design, =]

    thankyou for your help, ive been taught a lot these last few days on this forum because of people like yourself.

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

    thanks again

    Luke

  • yes! thats it, turns out i was nevr too far away after all. i tried a similar setup this morning lol <img src="smileys/smiley1.gif" border="0" align="middle" /> one issue however is i would prefer it if i could create the second one and the 1st stays until i release the mouse.

    so it doesnt dissapear as soon as a press the mouse down

    if that makes sense lol

    thankyou so much!

  • ahh i think i get it a little better now, so my mistake is by trying to destroy the 1st object, instead chnage the value of the 1st and then destroy..

  • p.s its the bar object which i only want 1 of at a time, just incase i didnt make it clear <img src="smileys/smiley4.gif" border="0" align="middle" />

  • oooh now thats an idea i havent tried... and could work <img src="smileys/smiley1.gif" border="0" align="middle" />

    heres the cap.x dude

    mediafire.com

    thankyou!

  • hmm ive tried methods like that however it always destroys both objects. hmm maybe im just making a slight mistake somewhere..

  • i tried that also, with no avail.

    i think i didnt explain it correctly, at least made a mistake when i said ball lol.

    mediafire.com

    there is the file, as you can see you are able to use left mouse button to "draw" lines on the screen, i want it so when i create a second line, the 1st gets destroyed.

  • andreas, sadly no, i tried that at 1st but didnt work, this just destroys the current object before its even created, basicly not creating an object at all

  • well i think its my only option, once they create one ball and its gets used, they will create another. that 1st ball will never really get used again so i thought destroying is the only option.

    i guess i could have 2 objects and as you said make 1 invisible while the other shows, and simply keep switching between them..

    what ive gathered so far is i can do the destroying technuiqe by giving the ball a UID, so the 1st ball would have a UID of 0 and second ball would be 1, then something like

    if UID is higher than 1 - delete ball with instance of 1 - change value of UID of ball 2 to 1

    thats even if that would work, if so i cant seem to write the events for it lol

  • hey guys, ok i know this should be a simple task and few members have tried to explain it to me but being the impatient type that i am i just cant seem to grasp it.

    ok so in my game the player can create objects in runtime, so far they can create infinate number of the same object (for example, a "ball")

    now what i want is so when the player creates ball number 2 (which is the same object as the 1st) ball number 1 gets destroyed.

    i know it sounds simple and it probably is, however ive really hit a rock here and cant figure it out. <img src="smileys/smiley7.gif" border="0" align="middle" />