R0J0hound's Recent Forum Activity

  • There are only global and instance variables in CC. C2 spoils us with local variables.

  • It opens and runs fine here. What is the error you get?

    It possibly could be you're running out of video ram. Open the task manager and see if any temp.exe, temp1.exe, temp2.exe, ...etc are running and close them. Those are the previews and if your game crashes they may not close right and are retaining video ram.

  • I've killed soo many beavers playing this. I think you've succeeded in giving it that hard arcade feel. I just have a few random ideas.

    It would be cool if you could give the beaver some acceleration. So instead of hitting the ground running full speed, he would start standing and accelerate up to speed. The same could be done for the speed power up so the speed change wouldn't be instant. This could also be used to make a progressive game mode where over time the beaver runs faster and faster.

    I'm no animator but I wonder if it could look cool to have a turning animation. Also it might look cool to have some effects such as skid marks in the grass or puffs of dust when turning. It could also look cool to give a dust trail like Looney toon's roadrunner when you get the soda powerup.

    Lastly gibs. It would look pretty cool and make dying a reward in and of itself if beaver bits got blown all over upon exploding. That and a little screen shake would make the expositions pack more of a punch.

    Anyway just some random Ideas. As it is now it looks pretty good. I especially like the menu.

  • PhoeNYX

    I'll reply here too. If you PM me the cap I'd be happy to try to recover what I can. I made a python library called Capreader that allows you to open cap files. The advantage of it is even if the file is corrupted you can access anything up to the point of corruption.

  • PhoeNYX

    I made a python library called Capreader that allows you to open cap files. If you PM me the cap I can use it to salvage what I can. It all depends on what point got corrupted in the file.

  • You could use this expression for an equivalent of choose.

    {"sound1", "sound2", "sound3"}at (random(3)+1)

  • Use the .AsJSON expression and "set from json" action to copy object state. Ex:

    Global text temp=""

    For each ball

    ---Set temp to ball.AsJSON

    ---ball: spawn ball at image point 0

    ---ball: Set form JSON string temp

  • From the system expressions manual page.

    https://www.scirra.com/manual/126/system-expressions

    [quote:2mxahcdl]right(text, count)

    Return the last count characters of text.

    Use that with a system compare condition with right(EditBox.Text, 1) = " "

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Without more info about the sub-events I'd say no. If the sub-event has conditions that pick boxmutant objects then comparing the object count is redundant since if there are no instances then it automatically won't run.

    Basically for optimizing you should only optimise slow areas and somehow check performance before and after to see if things were improved. Me personally, I try to keep events simple and readable. The profiler can be useful to check what percentage of the country's each event group is using, and help identify what areas need More attention.

  • Every tick set sprite size to (50*OriginalWindowWidth/WindowWidth, 50*OriginalWindowHeight/WindowHeight)

  • As you wrote it in your first post:

    enemy compare var

    enemy is overlapping enemy

    enemy is overlapping laser

    And your last post:

    enemy is overlapping laser

    enemy is overlapping enemy

  • Ok, I had a go with the math bit. First here's the capx

    https://dl.dropboxusercontent.com/u/542 ... rsect.capx

    Basically it's projecting 3d points to the screen. The first 8 points are just to visualize the room so I could get the background to match. The rest of the points are found from the intersections of rays from the light source to the walls. The ugliest part was the rotation math to get the spotlight to change direction.

    The spotlight can then be drawn as a polygon with the point locations using the canvas plugin.

    https://dl.dropboxusercontent.com/u/542 ... light.capx

    It's not perfect at the edges of the walls. To fix that additional points would need to be calculated for where the lines intersect from the view of the light, as best I can tell.

R0J0hound's avatar

R0J0hound

Member since 15 Jun, 2009

Twitter
R0J0hound has 157 followers

Connect with R0J0hound