LukeWolf's Forum Posts

  • Thanks Dop! Just so you know, I am designing this so the speech bubble appears first and then I am going to display the text using a type writer effect. This should give it plenty of time as opposed to displaying the entire text all at once. I'll give your advice a try and see how I go.

  • Hey guys,

    The goal I am trying to achieve is work out how big the speech bubble image needs to be for the amount of text in speech.

    To help with this, I have a 9patch image that will be set for the background. I have a sprite that helps provide image points and values and outlining the max size of the speech bubble which will be 300x200 by the way (I'm doing this because different coloured 9patch speech bubbles will be used).

    1) For each little paragraph of speech I need to count the possible maximum amount of characters in one line - I believe I can do this by setting a variable that counts characters in the image points object: len(textspeechobject.text) - the problem is I need to do this for the line that has the most characters (I don't know what that's going to be because that value can be tangible). I need to do this to determine the width of the 9patch image.

    2) I also need a way to count how many lines there are to determine the height of the speech bubble 9patch image. People have said use tokencount(textspeechobject.text, newline) but it doesn't count the amount of lines properly.

    I'm a bit mind blown, can you please help me?

    Thanks!

  • Oh I see.

    Thanks Ash!

    Hello people,

    I have not read the whole thread or everything about this new product yet; I have, though, read Ash and Tom's posts and some of other people have said, and god, you guys have another thread somewhere about this... fascinating! However, excessive time would be needed for me to complete the reading of the whole discussion.

    I just want to point out what attracted me to Construct 2. There are a couple of things:

    The first was my desire to create games. I actually ended up watching a youtube video on many different game creation tools, and Construct 2 really stood out from the crowd.

    The second was the fact I could buy a permanent licence and own a copy. The free version also did very well to drag me in further, and I have fallen in love with it!

    I have extremely limited ability in coding anything, and I'm still yet to finish my first game, but I am very passionate to keep going and protective about my ideas just like everyone else here.

    I just hope I will be able to continue my projects without hindrance or it being too costly.

    Thank you!

    • Luke
  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I did indeed consider doing this. However, due to the shape of my image and the area needed for the effect, I found it easier to do image points then use a set position to image action with the random(round) expression to pick the image points at random. Otherwise, I would have the effect appearing out of place.

  • A very interesting find! Well done!

    If you were to use a sprite as an effect to be randomly placed over certain areas of an image, but random enough for the player to appreciate the effect without it being too repetitive, then you may need that many image points. Names would be fine except when there are so many image points and since I wasn't going to use the points for anything else and may use them again with other similar image frames where you would need to rename them again, I decided not to waste time in naming them all.

  • Problem Description

    When modifying animations, there is a cap to the amount of image points allowed for some image frames.

    For my project; I had to replace the animation's frames with better ones, so I deleted all the frames except the one with the most image points that I needed, so I did that and added the new frames, I then applied the maximum number of image points that I had on the first frame to the whole animation (so I didn't have to go to each of the new frames and individually add the image points I wanted and I used the button that allows you to automatically add that), then I moved to frame 1 and deleted some image points. I did the same with frame 2, then on frame 3 I realised I needed a bit more so I added additional image points to that frame, and that is where it stopped working, I only needed a few more image points for it, and for some reason the rest of the animation is able to have more than 21 image points.

    Attach a Capx

    https://www.dropbox.com/s/acj7d8uz0x8g9 ... .capx?dl=0

    Description of Capx

    Demonstrates the inability to assign additional image points where the designer has to replace frames for an animation due to a change in graphics.

    Steps to Reproduce Bug

    • Step 1 - Have about 10 animation frames for a sprite.
    • Step 2 - Assign a reasonable number of image points like 30 image points to the first frame
    • Step 3 - For each image point on frame 0, assign it to the whole animation
    • Step 4 - Delete all frames but frame 0 (keep at least one of the frames with all the image points you assigned)
    • Step 5 - Add new frames until there is 10 and then use the first frame (frame 0) (with all the image points to assign to whole animation)
    • Step 6 - Go to Frame 1 and delete some image but not all of them, do the same for frame 2
    • Step 7 - On Frame 3, delete 20 image points (assuming you have 30 image points as previously said, do not delete all of the image points),
    • Step 8 - Try to add additional image points and see if it stops you from adding image points after a certain amount.

    Observed Result

    You cannot add additional image points to a certain frame.

    Expected Result

    I expect to be able to add as many image points as I want to.

    Affected Browsers

    • Chrome: NO
    • FireFox: NO
    • Internet Explorer: NO

    Operating System and Service Pack

    Microsoft Windows 10 Pro v 10.0.14393 Build 14393

    Construct 2 Version ID

    Release 244 (64-bit) Built at 15:05:13 on April 19, 2017

  • Thanks for checking I wasn't the insane one here, haha. I'll report this as a bug. Thank you very much!

    I also managed to get a work around happening with what I needed anyway, but I think this is good to point out.

  • Maybe if I tell you what I've been doing it might help recreate the problem.

    I had to replace the animation's frames with better ones, so I deleted all the frames except the one with the most image points that I needed, so I did that and added the new frames, I then applied the maximum number of image points that I had on the first frame to the whole animation (so I didn't have to go to each of the new frames and individually add the image points I wanted and I used the button that allows you to automatically add that), then I moved to frame 1 and deleted some image points. I did the same with frame 2, then on frame 3 I realised I needed a bit more so I added additional image points to that frame, and that is where it stopped working, I only needed a few more image points for it, and for or some reason the rest of the animation is able to have more than 21 image points.

  • Sorry to bump, but I am still lost with this. I understand you guys are busy but can I please get someone to reply? I'm not able to PM Tom as advised and I do not know who else to go to or what to do further.

    Thanks!

    Tom

    Ashley

  • I'm not getting any errors, it just ignores me pressing the button to add an image point. I've tried closing construct 2 and re-opening it. I've tried deleting the frame and re-creating it but it still will not work.

    I'm creating points on an image so I can randomly position a special effect on it. I am attempting to create enough image points within a suitable area of the image so it does not look out of place, but random enough for the player to appreciate the effect.

  • Hey there,

    I've stumbled upon a problem with one of my animations. On one frame I can add more than 21 image points, but on another frame I've got I cannot add more than 21 image points. The first frame has 32, but it's still not working. It just does not add an image point beyond 21.

    Initially I thought you could have a lot (if not, unlimited) amount of image points?

    Is there a maximum number of image points allowed per animation? What am I doing wrong here?

    Many thanks!

    • Luke
  • Oh I understand perfectly now.

    Thanks for your help! Very grateful!

  • Hey Sol,

    Thanks so much for spending the time you have to look into this for me! I have tested it twice and it's consistent. Thank you so much!

    Just one question though, does that mean I need the part where I check the AppleTree's Object_UID to see if it matchs the FireCloak's Object_UID or not? Because you said that was just picking itself, even though in the expression, it says "FireCloak.Object_UID"?

  • Sorry about that. Here's the proper one:

    https://www.dropbox.com/s/kd4x0frtc6nzn ... .capx?dl=0