00Rez's Forum Posts

  • seven

    Beurt

    New version uploaded still alpha let me know what you think and if any problems occur...

    Rez

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Unless already stated how would you go about creating way point movement. I only want the ping not the pong.

    Thanks,

    Rez.

  • Hi GauVeldt,

    This is exactly what I need for my plugin. Thank you so much! <img src="smileys/smiley32.gif" border="0" align="middle" />

    • Rez
  • Beurt

    Sorry for the delay Beurt.

    Seems I may have deleted the original files will sort this out tonight for you.

    I'm currently working on a much, hopefully, simpler cleaned up version which also includes path finding. The behaviors new name will be "Rogue" as it incorporates two functions relating to roguelikes; path finding and grid based sight! One thing I don't like with my current release is it's usability and accessibility which will hopefully be much better in this next release.

    Speed wise not much difference although rendering is better in the new releases of Construct 2 anyways.

    Watch this space, once I've ironed out the bugs a new version will be uploaded! <img src="smileys/smiley9.gif" border="0" align="middle" />

    P.S. Two things eluding me at the moment, a way to have smooth timed movement and shadow rendering from the runtime... <img src="smileys/smiley11.gif" border="0" align="middle" />

    The link *should* work now.

  • Beurt

    Sorry for the delay Beurt.

    Seems I may have deleted the original files will sort this out tonight for you.

    I'm currently working on a much, hopefully, simpler cleaned up version which also includes path finding. The behaviors new name will be "Rogue" as it incorporates two functions relating to roguelikes; path finding and grid based sight! One thing I don't like with my current release is it's usability and accessibility which will hopefully be much better in this next release.

    Speed wise not much difference although rendering is better in the new releases of Construct 2 anyways.

    Watch this space, once I've ironed out the bugs a new version will be uploaded! <img src="smileys/smiley9.gif" border="0" align="middle" />

    P.S. Two things eluding me at the moment, a way to have smooth timed movement and shadow rendering from the runtime... <img src="smileys/smiley11.gif" border="0" align="middle" />

  • Here is my entry survive as long as you can or until an error occurs. I wanted to create a simple addictive arcade style space shooter. There still might me errors! <img src="smileys/smiley19.gif" border="0" align="middle" />

    Left mouse button = homing missile

    Right mouse button = gatling laser which actually runs on power so not a great idea to hold it down!

    The slightly larger objects that come in slow all the other things down, they have a few hit points.

    I knocked this up real quick so it's missing a few things I had planned.

    EDIT: It starts off paused so press P to begin!

    It gets harder hopefully...

    a) Last Stand

    b) dl.dropbox.com/u/19078872/Last%20Stand/index.html

    c) UK

  • You can send your .capx to my email address. If you can't reproduce it in a new project, we really can't do anything without your file.

    Ok thanks Ashley. I'll send the project asap. I'll see if I can work around the problem for now. I was going to rewrite the whole thing as it was more of a creative vent and a balance test than a finished product but I don't have time for the competition so I'll have to integrate a pause and restart function then pass it over to Tom.

    Would that be ok?

  • Not really, it was my entry for the competition. It seems to work with new projects <img src="smileys/smiley13.gif" border="0" align="middle" /> so I can't replicate. On another note I did notice when I originally opened the old project (made in r63) into r64 the "Touch" plugin wouldn't show on the object panel or when selecting an event. I had to delete and re-add it. Not sure if this is related.

  • I had a project in r63 which only had one layout named by its default name then this project was opened and saved in r64.

    I then wanted to create another layout which after a key press would go to the original layout. So I renamed the original to "game" then created a new layout named "intro" then it asked if I wanted an event sheet created and I clicked yes. I then renamed the event sheet to "intro events".

    Now I created a simple event in the intro event sheet "if space is down go to layout game". It doesn't work at all. I tried mouse clicking, object clicking, etc. It seem it's failing to go to the game layout and can't.

    Not sure if it's a bug and I'm hoping I'm overlooking something really simple.

  • Do the HTML5 Canvas line commands work inside plugins? I know this might be a stupid question but I thought I would ask before delving...

    E.g. I have an object and this object draws itself as well as a few filled shapes made up of lines (...beginPath(), moveTo(x,y), pathTo(x,y) etc). Is this possible? If it isn't is their speedy alternatives?

  • Hi Rez - I really like what you have done so far and I question whether this can be done even more efficiently without the use of sprites - I wonder if drawing vectors with canvas to create the effect would be better in the end.

    something I looked up

    I don't know if you'll continue to work on this plugin or not - I just wanted to share that link to see if the second example was possible

    I understand there are vector functions for plugins however I noticed Ashley mention about slow down using to many of these. I wanted to leave the rendering to the designer rather than my plugin as this can be used for many different things.

    If I come across a good method I would add it to the plugin believe you me!

    I'll have a look at your reference. Thanks Vile! <img src="smileys/smiley20.gif" border="0" align="middle">

  • bowiz2

    100 - round(min((distance(Sun.X, Sun.Y, Sun.Sight.CurPixelX, Sun.Sight.CurPixelY))/(Sun.Sight.Radius * Sun.Sight.Tilesize),1) * 100)

    This above should work set the LightCell effect to "Destination out."

    Finally, the drop off effect as I've mentioned (the core bit you talk about) is some elaborate maths which at the moment I can't think of, try Google! <img src="smileys/smiley17.gif" border="0" align="middle" />

  • I managed to get it to work somewhat, but instead of being lightest at the center, its darkest. How do I invert it? I think you explained it in your last post, but I still don't really get it. Can you try and explain it as if your explaining to an imbecile?

    Here is the code for the opacity:

    Lightcell--->Set Opacity To min(distance(Sun.X,Sun.Y,Sun.Sight.CurPixelX,Sun.Sight.CurPixelY)/ (10 * 32), 1)*100

    Lightcell--->Set Opacity To 1 - (min(distance(Sun.X,Sun.Y,Sun.Sight.CurPixelX,Sun.Sight.CurPixelY)/ (Sun.Sight.Radius * Sun.Sight.Tilesize), 1)) * 100

    The 1 - inverts the opacity. The Sun.Sight.Radius and Sun.Sight.Tilesize are expressions and if you put them in you don't have to worry about changing them as it will automatically update.

  • When I disable it the radius gets really big, more or less the way I want it, but I didn't get what you said about the set opacity thing. I just copied from the example file. What I understood is that code makes it so that the opacity is set in relevance to its distance from the light source, but only up to a certain distance. Is this right? If so, how can I change what the restraint is?

    The equation I used for the opacity was a quick implementation.

    The radius say 5 is multiplied by the tile size which is default 32. This is the maximum distance at which the opacity would be 100 or 0 depending on how you blend the LightCell/Shadow. You need to gradually decrease/increase this as the distance decreases back to the centre. Plus a realistic light has more of a drop off than a linear reduction in intensity. There is a bit of math involved in producing a realistic light. Experiment.

    Quick and easy way: min(Distance from light to shadow cell / (Radius * Tilesize), 1) this produces a number between 0 and 1. To invert take this number from 1 then multiply by 100 to get a value you can assign to the opacity setting for the lightcell/shadow objects.

    Make sure you snap to the grid when placing the objects or it won't look right.

  • > For some reason when I change the radius, nothing happens. Any ideas why?

    > Oh, and I got it working with your last posts :)

    How and what are you setting the radius to?

    <img src="http://dl.dropbox.com/u/19078872/opacity.png" border="0" />

    Toggle disable this then change the radius to 10 and preview then change it back to 5 and preview. The way you set opacity is the problem no matter how big the radius is the opacity is reduced at a set distance.