lucid's Recent Forum Activity

  • 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">

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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

  • Also, this should be posted in Construct Engineering.

    and welcome to scirra.

  • http://www.majestic12.co.uk/

    I think it might be this

  • It should be mentioned that the Xbox 360 Controller Plugin has had some problems. Not everyone has experienced them, but they are definitely there. If you do get this problem, you'll notice that something weird starts happening with it. It varies from case to case.

    I haven't tried Custom Controls plugin on the latest versions, but it had solved several of 360 plugin's bugs. a comprehensive list of the fixed bugs and the plugin itself are available here:

    http://www.scirra.com/forum/viewtopic.php?f=2&t=4476

    Also, it allows users to set their own button configurations

  • I would recommend using functions to control any multiplayer aspect of the game. Later when its time to incorporate python, or a plugin, or even local multiplayer, you could change the way you achieved multiplay, without having to worry about it affecting anything else.

    For example:

    you could make either a construct function or a python function, whichever you're most comfortable with:

    GetPlayerInputX, this function would take in a value for the player number, and output a value for how much the x axis of the control for player is being applied

    the inner workings of the GetPlayerInputX could change, or expand whenever you needed them to, without affecting any other code. You could make getplayerinputx gather information from xbox360 controllers, using the player number to choose which controller, and returning the Left Analog X Axis. Down the line when a plugin comes out, player number might refer to an index in a list of ip addresses, and the function would output information from a particular packet. You could even have an AI control the X Axis. The idea is that you can change this function, and the rest of the game that needs to GetPlayerInputX, doesn't need to care about how it does it.

    It would be best to also have a SetPlayerInputX in this example. This concept of protecting code from changes to other pieces of code is called Information Hiding, or Encapsulation. It's an Object-Oriented Design Principle. Try googling those terms if it's something you're interested in learning more about.

    One more thing. I have zero experience with online multiplayer code. However, from what I understand, optimization is a more important issue when dealing with online code, so it's possible you may have to alter other parts of your cap to call a function like GetPlayerInputX less often than you will be able to for offline play. But you should need a lot less alterations to your code if you use functions.

lucid's avatar

lucid

Member since 16 Jan, 2009

Twitter
lucid has 22 followers

Connect with lucid

Trophy Case

  • 15-Year Club
  • 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
  • RTFM Read the fabulous manual
  • Email Verified

Progress

22/44
How to earn trophies