Alon's Recent Forum Activity

  • Hi kidswithcrowns I guess I'm not that smart to figure this out,

    As I explained my problem is that my logic on paper is SUPER EASY for me to understand but as soon as I try to translate it to C3 code... it's a total mess.

    Here is what I tried to do following your instructions, which is not working because I probably didn't get it right... again:

    DOWNLOAD - Another Failed Try C3 file

    Thanks ahead for any help! :)

  • Thank you for the helpful explanation, I do understand your description but when it comes to C3 I get confused real fast but I'll try to get the idea as I'll keep practice, for now I feel like I do some random organized with some actions which feels really bad because I do want to understand so I can be more creative.

    For example, I used your screenshot, which I didn't even THINK about making an empty event for the "Disable Outline" action, such a simple solution which my brain can't solve inside C3.

    Now that it works, when I drag the selected instance it enables the OUTLINE effect as I wanted but...

    as I keep dragging it OVER other instances, they are also enable the OUTLINE, and I want ONLY the dragged instance to be affected by the effect (one at a time, that's why for each made sense to me because how it sounds... for each instance.. but I see, it's not how it works)

    How can I make this to affect only one instance, even while dragging and not just by over with the mouse cursor (2 different goals for the OUTLINE effect).

    Feel free to show me a screenshot like you did or use the example file I uploaded on the first post.

    Thank you so much kidswithcrowns for taking the time to explain and show a visual example which helps a lot to my simple-logic-brain :)

  • rgba does take values in a 0-100 range, where 100 corresponds to 100%. However it is not limited to this range - you can pass 255, but that corresponds to 255% red, as in 2.5x more red than you'd normally get.

    255% OH! it make sense but still... I get 99% of the time RED colors even when I use int random as you suggested and 0-100 so something must be wrong in my code and I have no clue how to fix it.

    Ashley Thanks for the reply it explains the 255 vs 100 limit! :)

  • Hi All,

    I still don't know how to setup a working UID or use it when CREATING a new instance (I don't get it yet).

    So, I tried another way using For Each instance in a Family.

    The effect I want works as I need but it won't enable ONLY the Top Instance but also the any instances Top & Bottom, basically any instance that the mouse cursor is over.

    How can I fix this without using the confusing UID way of code?

    I attached a file if anyone can have a look, Thanks ahead! :)

    DOWNLOAD - Construct 3 Example File

  • Not unless you use different layers.

    Yeah, I guess there is no other light solution to this, but thanks for helping I appreciate it! :)

  • I just applied it to the all family so it will work on any instance of any object.

    I don't really know how to do what you've suggested but if it takes more CPU or Memory... it won't be very good for many MANY objects on the screen I guess.

    Is there another way to "DRAW" an outline around any instance using the same pixel ratio / size?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • construct.net/en/make-games/addons/265/outline

    You would just put those instancs on a layout with the effect.

    Thanks newt it's very useful!

    Unfortunately when resize, it will resize the outline as well and get very pixelish / blurry.

    That was what I've described on issue #3 but this effect sure make things much easier!

    I'm looking for a way to keep the outline with the same ratio (2 pixels for example), no matter if the object resize, change rotation or any other tweak.

  • Hello All,

    I found a much more appealing look to my selected objects which I drag and drop, resize, rotate, change Z-Order etc.. all over the screen.

    So I know what I want it to look like I even have a working example (kind off..) but it's obviously not the best solution for what I'm trying to do and I'll explain why:

    When the Mouse is over the "Created_Objects" (family that contain ALL OBJECTS the user will create) I want a 2 pixels colored outline to appear around the object.

    So far so good, since my brain is just a simple logical one not like a programmer my first idea was to make extra animation for each object so it will have the 2 pixels around it on the same frame number.

    The problems:

    1 - Since each object contains 1 main animation with MANY VARIATIONS, each frame is a different variation.

    I will need to DUPLICATE the animation, and every time I will add a new variation to the main animation I will have to manually duplicate it to the duplicate animation which I called: "Selected".

    2 - I actually need to DRAW that line around each frame, or even if I use automatic filer to do it, it's a never-ending process because I'm about to keep adding more and more frames to the main animation.

    3 - When Resize the instance, the MANUALLY DRAWN outline will also change it's size.

    I would like the outline around the instance shape to stay the same amount of pixels ALWAYS.

    So if it's 2 pixels, or 4, so I can choose and change it if I want.

    4 - Duplicate each Animation and it's frame to the "Selected" Animation with same amount of frames but drawn with the Outline Edge will take DOUBLE the space which will make the software bigger and bigger as I'll keep update it.

    The Question:

    Is this possible to do with simple code? or it is very complicated and I rather

    Maybe a specific Effect that can do this, I didn't found something beside BlurH and BlurV which isn't exactly what I'm looking for since it's... blurry, looks like glow unlike the SIMPLE effect I show on my example attached file.

    What do you think? simple solution that even a noob like me can use? or waste of time to do in C3 without confusing code that I won't be able to follow (again, I'm not a programmer, just an animator).

    DOWNLOAD - Not Finished EXAMPLE C3 File

    Please share your ideas, suggestions, solutions.

    Thanks ahead! :)

  • Thanks for the example and explanation, to be honest it is scary for me how complex it will become as more as I'll use more actions (not just rotate and size) later on... so I need to think if I should use an UNDO / REDO system at all.

    The amazing thing is that I didn't even realize it is possible in C3, and to think that there are no actual limits so far (beside the fact that I'm not even close to understand how to program these yet) still very encouraging.

    I will have to see if I can.. or should actually apply this to my project because my original goal is to keep it simple, but I think some users will get upset if a basic function such as UNDO is not there.

    Once again, thank you so much dop2000 your help is always appreciated!

  • Thanks for the detailed reply, I appreciate it!

    So I created a clean example project so I can share here since my project is getting very complicated (especially for me as a noob), I do many mistakes and still can't solve many simple problems.

    the reason I prefer to use the SetColor is because I have extra control with the Alpha for opacity, but if it's not possible to use it I'll be happy to use the other option.

    As you can see I didn't solve the color selection in that project maybe you can help me out here.

    Also, I made a OFF-TOPIC point to show that what Ashley said:

    Note rgba takes values in the range 0-100, not 0-255. It's also fine to pass floats to these expressions - any rounding or clamping is done internally in the expression.

    Is not accurate at least on the current version and I wondered why it is not fixed on the expression tip that suggest 0-100 for every color while it is obviously 0-255 for RGB and 0-100 only for Alpha, this is how I'm used to it on animation software so it's great!

    File Example, as you can see I can SetColor from 0-255 for the RGB:

    File Test C3

    Back to the Original Issue:

    I hope you can help me out with the selection, my goal is that whenever you select or add selection to an object is to set a random color but unfortunately I'm not smart enough to solve this.

    Thanks ahead for any help!

  • Thanks Maverick1912 and Kyatric I tried to follow your instructions, but I get 99% of the selected objects the default color (which is Red for now).

    How can I make it more Random to select different colors and not mostly Red?

    BTW - I'm trying to make this work for mouse since I'm not using the touch object.

    My current test:

  • I don't know your layout structure. For this system to work, one instance of UNDO object should be present on all layouts where you need undo/redo.

    My layout structure is basically: ALL layouts in the projects included on "L_Workspace" beside that, the main events is the biggest event sheet called: "E_MANAGER". I guess I have no choice but to actually put all hundreds of my objects in the "L_Workspace" with the current system, the reason it worries me is that's BEFORE the user will add hundreds of items on the same layout while creating more and more.

    But if it's the only way to make this wonderful system to work, I'll put everything on "L_Workspace" of course.

    Applying: Angle / Size

    I'm trying my luck with Rotate / Resize to work with your UNDO / REDO system, I almost made it working but it's not working exactly... I'm trying to make sure it won't save on every tiny change but only when the specific action keys released, here is the current version:

    DOWNLOAD C3 Remake TEST

    It's a mess, I know... but that's not even close to how complex my project is so I try to practice on this much more cleaner project based on your system. :)

Alon's avatar

Alon

Member since 20 Feb, 2014

None one is following Alon yet!

Trophy Case

  • 10-Year Club
  • Email Verified

Progress

11/44
How to earn trophies