lucid's Recent Forum Activity

  • oh here goes soldjah boy, showing up just long enough to say something stupid.

    totally kidding sol. yeah, thanks again soljah, for suggesting I try plugin development again, you changed my life. if I become a millionaire developing mobile games, I owe you beer, or a joint, whatever you weirdos do over there.

  • I've found a way to translate a cap file to Java very, very quickly. it requires some programming know how, and some initial setup time, but once that's over, damn it's fast. and anyone confident in their language of choice can do it. but first a little background info:

    So, I was using Construct to prototype my ideas for my Android game, especially because it uses procedural animation exclusively, which requires alot of trial and error. I wanted the process to be as painless as possible, so I created java functions for all the construct functionality I'd need.

    I have a 'sprite' class, with a 'move to position' function, a 'set angle towards' function, etc

    I've got lerp.. basically every object type I'll be using I made a java equivalent class, and every action/condition/expression also has a java equivalent.

    Then I discovered that you can right click on a construct event, and "copy as text".

    if you set up your java classes to be as much like construct objects as possible, you can just copy/paste into something like notepad++, and then completely convert it to java using the same set of find/replace commands each time. The whole process of converting from cap file to java takes about 1 minute 30 seconds (because you have to copy/paste, etc). After I setup a macro to automate it, I'd say it'll probably take about 15 to 30 seconds to convert from cap file to java. in short, again, Construct is awesome always, now and forever, and ever has been.

  • <img src="http://sphotos.ak.fbcdn.net/hphotos-ak-ash1/hs501.ash1/29676_438829659637_759624637_5710054_3141386_n.jpg">

  • I like how the only people to respond to the OPs questions are people who aren't qualified to do so.

    Also, soldjah boy was the one who suggested I should have another go at plugin development, back when I was a wee little lass, er.. lad. That alone makes him radically awesome.

  • here ya go, right click - view image if it doesn't fit in your browser normally:

    first one:

    <img src="http://dl.dropbox.com/u/1013446/functions.png">

    second one:

    <img src="http://dl.dropbox.com/u/1013446/functions2.png">

  • thanks quazi and rojo.

    I noticed after this post that notepad++ has a record macro feature, so I'll probably test that out first. [edit: nm, the macro recorder in notepad++ won't record find/replace actions, presumably because it only records what happens while the main program window is in focus[not the find/replace child window])

    but what I meant quazi, is I have to find and replace several things in a row, in a certain order, like

    Find "applesauce", replace with "butter"

    Find "apple", replace with "pear"

    Find "you", replace with "me"

    Find "bloodcell", replace with "nanobot"

    it's a long sequence of these, that I'll probably have to do a few hundred times before I'm done developing my current project. So it'd save me alot of time and carpal tunnel, if it was automated, and I just hit one key, and it did the whole process for me.

  • this is a very simple example of how to use a function

    http://dl.dropbox.com/u/1013446/functions.cap

    once that makes sense. here's another way to use functions, in an expression:

    http://dl.dropbox.com/u/1013446/functions2.cap

    notice you can also set a return value.

    I assumed you had enough programming knowledge that these examples make some sense without more of an explanation, but please ask questions if you have them. Also, you'll notice when you call functions from an action, it lets you choose to 'remember' or 'forget' picking. It does exactly that. It maintains the selected object list, or starts from scratch in the function, depending on your needs.

  • in my current project, I'm going to need to do the same sequence of find/replace on text over and over throughout the development project. Is there a program that allows you to automate this? it would be extremely useful right about now.

  • lol its not possible to import spritesheets? only sequences of png files, right?

    damnn

    you can actually:

    in the animation panel, right click, and:

    <img src="http://dl.dropbox.com/u/1013446/importtiles.PNG">

  • Really surprised we haven't blown ourselves up yet

    well if we do, it'll be someone else's fault

  • The plugin is more aimed at advanced users, but the 's' plugin has a lot of functions you might find useful, there's a level editor tutorial that explains how to do pretty much what you just said in only 4 events if you're up to learning how the plugin works

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Also, this should be posted in Construct Engineering.

    and welcome to scirra.

lucid's avatar

lucid

Member since 16 Jan, 2009

Twitter
lucid has 25 followers

Connect with lucid

Trophy Case

  • Entrepreneur Sold something in the asset store
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Forum Hero Made 1,000 posts in the forums
  • Coach One of your tutorials has over 1,000 readers
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

24/44
How to earn trophies