mystazsea's Forum Posts

  • wow Wisdoms Im impressed..you got further than I did with my own idea

    lol..bravo

    Really like how you used the Layer blending modes to show the ( left/right/top/floor) lightbase frames..very clever:D

    That was a stroke of genius, something I wouldn't have thought of in a million years..

    no joke, you just increased my capacity for lateral thought..cheers

    um yeah but how to improve upon it mmmmmm

    "Non Euclidean Geometry"..is all I can say

    I think its a real good effort..just needs more tweaking..ill see if I can improve it..well done though..all ideas are good

    Yeah I didnt say it was the best solution ..just perhaps a step in the right direction...either way ..we are learning..and thats good in my book

    I agree with you R0J0hound, the math 'is' hairy... why I was trying to avoid it...mmmm

    But yes Katala that was the idea I was getting to...just didnt know how to express it..thanks

    funny how such a simple problem is more than it looks..

    perhaps we are overlooking an even easier solution...worth looking into.

    Theres that Paster word again...R0JOhound....did you do it again? "Paster" im confused again

    Well done everyone for chipping in...this is a problem ive often thought about myself....

    wait having a brain wave...wait..ok...try adjusting the height or width of the wall lightbase frames according to x,y pos of the mouse..if you know what i mean..if mouse is larger than the 'y pos' of the ceiling edge then set the height of the lightbase to increase and vice versa..if its lower than the floor edge (y pos) increase its height..

    and of course for the left and right walls you would adjust the width of the light base...get it?

    and when you increase the width or height of the lightbase..using "lerping" to make the transition smooth

    Ill try to update the capx but maybe youll beat me to it

    lolll..arrrgh my brain isnt up to this tonight...haha..heres a teeny weeny update...

    Now with Fancy radial Blur Web gl fx !!!

    https://www.dropbox.com/s/a0qdu5tygt2gaf4/RoomLight%20update%203.capx?dl=0

    still buggy ..for some reason I cant figure out why it works on the ceiling and floor but not the side walls ..can anyone see why? I must of missed something

    Its not perfect but it could be a start for improve upon

    but also it doesnt fix the problem at all but creates another..youll see what I mean...as the light sphere reaches the edge..you see divergence of the ligjht cone not quite matching up ...mmmm...cmon Katala ..show us your stuff,...i need to go kill some zombies now..my brain is worn out...lol

  • Mmmm thats a good question...Thanks for asking it

    There would be many different ways to achieve this, some ways would be better than others..Im sure there would be a pure code or math based solution

    but

    Personally, id 'fake' it, if it was really necessary

    Seeing as to be honest ..the perspective view you have shown would in reality skew the corner parts uniformly as the projection of the room is mostly straight on

    first off I would make the back wall on a separate layer that was behind all of the other layers which each had a side wall object placed in within it

    On the back layer the light sprite goes behind all of the other wall sprites and will always stay behind unless its a full view of the light sprite

    thats the easy part

    The next part would be slightly trickier

    it involved using more light sprite objects that are Pre-skewed and aligning them at the correct location and position of the corresponding point on the back wall light sprite

    including not being shown when not needed...

    and of course...

    the floor and ceiling projections would also be handled the same way

    and to be honest ..I dont know now if this would work at all....may be better to find a better way...but who knows...maybe its possible...

    mmm thats the best I could do for now...but Ill try to whip up a capx demo for you...to see if it works

    https://www.dropbox.com/s/q5zssn3xv93y1d9/ROOM%20LIGHT%20TEST%201.0.capx?dl=0

    This is not finished..but maybe you can work on this idea,....Ill try to work it up more...

    The only way I know how to place perspective on sprites is here

    https://github.com/Pseudopode/construct2_plugins_behaviors/tree/master/pode_imagesEffects%26Text

    but its only perspective

    Not skewing ..which was what you stated.. ..

    skewing is not supported in construct 2

    which was why i suggest faking it with pre skewed sprites

    still needs the side wall objects put in and events ..but maybe it gives you a head start...

    cant think of anything else off the top of my head...maybe other people have better ideas

    good luck

  • no worries

    You are most welcome

  • Looking at it closely , I am pretty certain that for the water object

    he has used animations

    here Ive made a quick demo cap x for you using particles instead

    just play around with it to get it looking more realistic

    a slightly updated simple water demo like the one you posted newer version looks a little better

    https://www.dropbox.com/s/pm26qorl02kj5ii/A%20Water%20Demo.capx?dl=0

    anyone is welcome to edit this capX and repost it if you have made improvements

    I was just mucking around,....its not perfect by any means

    have fun!!

  • wait...wait...Ive had a bit more of a think about it and ...Actually... I want the Animated Bezier Sparkle objects to shoot other Sinewave Node Animated Bezier Sparkle objects out of its Sinewave Turret behaviours that are also about to shoot other Animated Bezier Sparkle object Beziers out of their respective and recursive & recurring Turret behaviours...is that clear now?

    Should make it a lot easier to program now..(oops I think I was just racist or something)

    clear?

    good

    Now im happy (but not about racism I mean happy that C2 is now having unlimited Bezier Curves Path loop objects...)

    oh and any chance I can get that in a gold plated and newly minted out of the box edition of Construct 2?

    yes ..cool thanks...

    now I am really happy...

    Thanks Ashley...You are the BEST!!

  • Well , For starters..I do know that there would be several problems to solve before it could be properly implemented, problems like

    • Scalability & memory usage ie: what happens to the Bezier spline path on larger layouts, I predict that the actual curves would scale uniformly which would result in larger, smoother curves as you place the Node further apart from each other..

    This may affect its usage in many cases...unless more nodes are added to 'sharpen' the curves.. more nodes means more processing and memory use..so its a trade off ..would we cap the number of Nodes to a finite amount or allow free Scaling of complexity...something that would be nice but i can imagine it would greatly affect processing...Although we are talking just about pure maths functions here so its display on screen is really just a projection of its mathematical values stored inside of each node.

    but that leads to the next problem..

    • Display...ie: how would the Bezier be displayed& also what happens when you scale the Layout? does the Bezier path remain visible...would it be possible if we have Beziers could we have fill shapes as well...or line weights..to display the curve..

    Some applications do have line weights and even effects for each bezier (illustrator treats paths as full artistic objects)

    but seeing as Construct 2 is not a painting program...i dont see why it should have this feature...and on that point..it would be possible to pin objects to the nodes and orient the objects angle to the Nodes Normal angle of projection. once again...its usefulness is limited only by your imagination...

    • Node handling..ie How the Nodes actually affect the curves..would we have additional bezier handle controls like in photoshop or illustrator? or is the sheer proximity of each node have a fixed output on its curve.

    Also would we be able to have different outputs for each node...to create different curves on the output side....

    ie: linear interpolation input & then say quadratic output after the next node

    -These are only a few of the issues....

    there are so many factors to consider...this is why I said that I know its "a big ask"

    its actually a huge process to implement all of this into Construct 2..

    personally I do think its worth it..as many other games design apps have it in various guises...

    and I know that eventually C2 will have it...but its a big process to implement it with any serious degree of user friendliness.

    To break it down further into Specific properties that would need to be encoded and threaded into C2..

    because it would be a new OBJECT it would need all of the normal properties of an c2 object

    Common properties like

    -Layer..Definitely needed

    -Angle..Maybe not needed but could be useful

    -Opacity..Definitely needed

    -Position and Size ..This is a more complex area...Because Each node would have its own position but determining the relative onscreen position of the entire bezier would need to be calculated as a result of each nodes relative position...and size again...the overall scaling of a path would be handy but would that be handled best by a boundary box or using this field??

    -Instance variable...The Bezier Objects should also retain Variables but also ideally...each node should have variables..but as you can imagine this would make processing even more epic...if you have a 30 node Bezier...and many other objects...suddenly you have 30x more checks per tick at a base level...if you add a variable to each node....or 2 or 3 oops sorry your game just died...

    - Behaviours...Of course!!!..As I mentioned above...In dreamfantasy land, every Bezier Node can have at least 130 umpteen behaviours attached to it and they all work perfectly...

    Did you know in fact, that in dreamfantasy land...each and every individual nodes can all have multiple sine behaviours, so that I can have animated bezier curves node all Sinewaving up and down left or right with or without triangular wave peaks, and each bezier that I have on screen (because I NEED more than just one or 2 I need at least 33 beziers all doing this) all 'with' 300 rotating sine wave sparkle Particle Emitters effects(All Pure GOLD Animated Sparkles.. of course!!), all travelling around my bezier spline path with different speeds and accelerations ..so some sparkles can complete loops faster than others...in fantasy dream land...I ride a winged unicorn as well ..AND.. both me AND my unicorn have sparkles and wings... oh yeah by the way, every single node of my multiple Animated Bezier curve/spline path loop objects that are sine wave verticallying & horzontallying are also shadow casting and shooting rainbows out of its turrent behaviour and whilst the entire Bezier path is pathfinding its way across to my player it is also fading in & out full opacity at the same time and its bound to the layout as well as Wrapped to Layoutall at once ...WITH PHYSICS!!!!, drag & drop functionality per Bezier & per Node per Bezier and a each Node has a spanky nice new scrollto behaviour on each and every one of its animated sine wave nodes.. all at once .....all of it...at once...with not a single bug or crash ..not one....oh and did I mention that I wanted the Bezier Curves paths to be SOLIDS as well and to process physics operations but doing it without Box2D colliders...I did say that didnt I? ..I am pretty sure I did say that..

    Oh and each one of those Beziers with all of those sparkle Particle Emitters effects is travelling around at totally randomly chosen speeds and accelerations calculated per tick, on the path of an even larger Bezier Spline Path which is also animated with sine wave wobbles...just like the universe that your computer is working processing in..

    see a perfect object...should be a breeze to implement...as soon as its done & I fire it up for the first time...it will run flawlessly and drain no extra power from the socket in fact it will generate electricity and power my computer and the rest of the street cursively & exponentially ...bit by mega bit.....my computer will achieve sentience all in a fraction of a femtosecond and save the universe from destruction by infinitely and recursively implementing itself retroactively into much more disseminate forms to avoid data deletion..

    yeah I have a soulmate as well..:p

    so you can see...there are just a few minor issues to fix.....thanks Ashley for getting onto that for me...

    Oh and HURRY UP ASHLEY I NEED IT NOW!!!!

    stop wasting time on all that other crap

    DO THIS NOW!!!

    Joy!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • If you are after a Straight line......Create a 1 or 2 pixel square Sprite object or better yet a tiled Background object

    Set its x, y position to the first object...Then set the objects width to the distance between the 2 objects and the angle to the other objects x,y position(use image points x,y for accuracy)

    Below I have included a simple demo of how to do it one way..there are most likely plenty of other ways..

    Just Drag either object to see the line appear

    A line between 2 objects

    https://www.dropbox.com/sh/2lmy1a0t8galurf/AAAm6isv0mjZqRMOY_FA4Zh7a?dl=0

  • well you know what they say.."great minds thinking" and whatnot...

    My bet is that Ashley has already started the process..hehe

    Maybe we are all on the same wavelength....Synchronism at work ?

  • Hey Ashley .....

    I was just wandering around today & I was thinking about something that would be 'Amazing' (understatement of the year)

    if it is possible to implement..

    I would like to see in Construct 2 a new set of Objects

    Bezier Path Loop This would be a closed loop comprised of Bezier Curves & nodes

    &

    Bezier Path Spline This would just be a Bezier Spline with two end node points

    A graphical example of what I mean...

    The idea would be ..You drag a Bezier Object into the Layout & set its number of nodes & then use drag handles to make the shape you need, and then The Bezier Object would function as a Custom movement path or as easy Solid or Physics Platforms... So each path would need to have built in variables like,

    -Number of Nodes(for adjustment)

    -Path speed ( the speed at which objects travel along it including Adjustment integration via Events)

    other stuff that you might think of..

    & also allow the Beziers to be affected by Various Behaviours..say for example....

    -Sine (may cause buggy or interesting movements)

    -Rotate

    -Fade

    -Timer

    -Solid & Jumpthru Could be a nice feature for building Spline based levels like seen here http://www.simbryocorp.com/Ferr2DTerrain/

    Obviously it is not reasonable to expect that all Behaviours would work correctly but whatever does work would be cool...etc

    The main purpose of the Bezier Path Objects is to allow any other objects to move along the Bezier object path...at various speeds, accelerations & interpolations etc

    Event sheet Conditions for the Objects could include

    -On path start,

    -On path End,

    -On loop complete,(for each time the Object completes one pass of the Loop, collect $200 )

    Events could be

    -Move Object along Path by Direction...(left or right, clockwise, anti clockwise, whatever)

    -Move Object along Path (Fixed Angle)

    -Move Object along path (Perpendicular to Spline)

    -Reverse Direction of Object movement

    -Set Speed of Spline Path

    -Set Acceleration of Spline Path

    -Stop Object on path (defunct if able to set speed)

    -Drop Object off path (or 'Destroy' Bezier)

    -Add Object to Path at Node

    -etc

    Easing Motions along the Beziers Paths would be awesome as well..Maybe added as a Behaviour?....

    I know we already have motion tweening and whatnot & that we do have these math functions in C2 ..but this would really add some groovy features if it could be made into a Behaviour ...or set of Behaviours, like

    • Quadratic Motion Ease..
    • Linear Motion Ease..
    • Etc

    Or perhaps It would be better to build these Motion Eases into the Properties of the Path object

    So we could with the click of a button have linear, cubic, circular, sine, quad or exponential interpolations along the spline path...

    and even better yet....

    Different Interpolations "Between 'each' node of the entire spline path"

    ie: between node 1 & 2 you have linear motion & then between 2 & 3 you have exponential...etc

    O M G ! ! !

    Then,

    for Animations and motions....etc... We could do stuff like this

    http://www.motionscript.com/articles/bounce-and-overshoot.html

    with the click of a few buttons..

    That would be pure legendary level stuff..

    The Interpolations would work out, a little like this, Ashley...if you get what I mean http://gizma.com/easing/

    I know its a big Ask...but it would be soooooooo Awesome...

    is it doable?

    Would love to see this as a permanent feature in Construct 2

    What do you think?

  • Plz feel free to suggest anything youd like...if you can think of something specific..the sky is the limit....The goal is to improve C2 beyond our wildest expectations.. heehehe...its alive!!

  • I am wondering if we could get an Audio Events overhaul...

    I have noticed some features missing that would really streamline production..

    A few suggestions for new Audio Events that I would find useful...

    "Preload folder"

    or perhaps "Preload by tag"

    Rather than just individual audio files...

    I am not sure if you can do this yet...there seems to be some functionality with the "preload by name" event for folders but then then you still have name files individually..

    I am not sure what would be better..perhaps Ashley if we could re look at the Audio features and events maybe a slight overhaul or look into some further integration with Tags and Folders some how..im not quite sure how to go about it, but I would like to be able to preload large Tagged groups or folders of Audio files...

    The main reason for this being that many of my projects have hundreds of sound effects...

    and they are often grouped by folder such as "Enemy Bullet fx" or what nots

    if anyone else has some ideas..perhaps we could pin this thread or bump up ..

    I think it would be nice to look further into the Audio features...They are already great..but I feel that its possible to squeeze even more out of HTML 5 browsers than what is already featured in Construct 2

    What do you think Ashley? Any chances of an Audio review or slight overhaul o stream line or add more gadgets?

    Further suggestions totally welcome...I'm sure there is more we could do with Audio

    What does everyone else think?

  • Perhaps an easier way would be to post specifically what coding elements you need done...

    At the moment there is only a very vague description of what would be required...

    Perhaps a point list of code you need ..would show people what they are getting into..

    to see if its worth their time

  • Very cool little game...well done...its a simple joy to play....

    good music and flows well....the sharks are scary ...haha

    well done

    its quite addictive

  • Use the coordinates of the positions and "find Path" to X,Ycoordinates..in the right sequence

    Then if path found...move along path

    I often use an invisible helper sprite that is "positioned first on a screen X,Y pos then i find path to the Helper sprite rather than directly...this way you can move your helper anywhere and then make the path finding do the work..

    break it down into steps...or moves....

    like

    find path to (heroX), (hero Y minus your grid size with was 32)

    then move along path

    then find path to (HeroX minus the 64 times how many grids you need to take),(Hero Y)

    hope that helps

  • You can use the WebBrowser Object

    to open any new page at any time you like using normal events

    this way you could for example..when the game is completed

    have a little popup or new layout that asks the player nicely to goto the playstore

    and then either:-

    • open the link for them in a new browser window

    or

    • just give them a link to click on themselves

    not every player likes to be hassled by stuff like this..so do it gently and you should have no dramas