LukeMarkBrady's Recent Forum Activity

  • 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" />

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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" />

  • 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.

LukeMarkBrady's avatar

LukeMarkBrady

Member since 18 Jan, 2012

None one is following LukeMarkBrady yet!

Connect with LukeMarkBrady

Trophy Case

  • 12-Year Club

Progress

12/44
How to earn trophies