lucid's Recent Forum Activity

  • an example of how this could work if you're still interested in making the plugin is this

    in main.h make a vector

    vector<CRunObject*> myobjects;

    then have an action that takes an object parameter

    and just do

    myobjects.push_back(params[0].GetObjectParamFirstInstance(pRuntime));//GetObjectParam is for CRunObjType* which is a type pointer as opposed to a specific object pointer
    

    and within  construct do a for each object in the subevent after doing whatever picking condition you need to add each one by one.  it's also possible to automatically get the entire list of picked objects automatically, but I can't think of how off the top of my head, and don't have the time automatically to go look up how.  if you search my posts in this [construct engineering] forum, and go to the oldest posts, you can find alot of useful replies from ashley when I was first starting out asking ten billion questions.

    after you had the objects loaded in the myobjects vector you could access them by index, if you wanted to move them all into a row for instance you could do something like

    for(int j=0;j<myobjects.size();j++)
    {
         myobjects[j]->info.x=j*myobjects[j]->info.w;//w:width...the .info structure has pretty much anything useful you'd want to do with objects, and most is self-explanatory
         myobjects[j]->info.y=240;
    }
    

    if you want to use the plugin generally, and want it to automatically get rid of objects destroyed in construct so you don't get a crash accessing invalid pointers

    in runtime.cpp in OnFrame2()

    you could do either

    for(int j=0;j<myobjects.size();j++)
    {
          if(myobjects[j]->info.destroying)//checking this in onframe2 is the last time this pointer will be valid, if the object is destroyed the pointer will be invalid the next tick
              myobjects.erase(myobjects.begin()+j);
    }
    

    which would erase that index in the vector, and move all the rest back to fill the gap

    or you could do

    for(int j=0;j<myobjects.size();j++)
    {
          if(myobjects[j]->info.destroying)
              myobjects[j]=0;
    }
    

    this would leave that index there, but with no object, so you could do a line of object like before, for instance, and have a gap in the line, instead of having the other objects fill that gap, you would have to modify it to check for the existence of a sprite, again to avoid crashes for accessing invalid pointers like so:

    for(int j=0;j<myobjects.size();j++)
    {
         if(myobjects[j])//add this to check if the pointer is nonzero...if not, you "erased" it
         {
              myobjects[j]->info.x=j*myobjects->info.w;
              myobjects[j]->info.y=240;
         }
    }
    

    <div id="swiffout"></div>

  • I agree about the light green diagonally striped background. Doesn't hurt my eyes, but it could be at least 20% cooler with another color

  • I really don't know what to think of this place anymore, lol.

    Really?

    Don't you think you're overreacting just a bit?

    I mean...I really don't see what the big fuss is about. It's a new site. You would swear they were charging microtransactions for posting img's the way everyones all up in arms about it

    <div id="swiffout"></div>

  • <div id="swiffout"></div>gravatar.com to change avatar

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • <div id="swiffout"></div>you can set avatar images at gravatar.com

  • <div id="swiffout"></div>reputation points are for popularity contests kisai.

    it's more like an incentive to be helpful.  it feels good to be recognized as a contributing member, and it's fun to wear your rep point badge or whatever, so it's made to encourage/reward people to be helpful.  you get rep points for making good tutorials and answering helpfully in help/support.  as tom said, it's based off stackoverflow.com, which is about the most non-clique site you'll ever find.  it's just a bunch of superhelpful superskillful programmers who you usually only see once because there is no forum, it's just a question and answer site, but when you see some who has godlike reputation points, you can be more sure their answer is a sound one.

  • <div id="swiffout"></div>oh, also it doesn't notify me there's been additional posts while I was typing :)

    this is my old account, it just stopped working for a while before I had posted.

    favicons working now

    also...gotta test  this [tube] thing<div>

    [tube]http://www.youtube.com/watch?v=pTPqjKk_xCo[/tube]

    edit :oh yeah...no link to chat in the forum bar either

    edit2:weird...tube link was working a minute ago, now it's just blank

    <div id="swiffout"></div>

    <div id="swiffout"></div>

    <div id="swiffout"></div>

    </div>

  • <div id="swiffout"></div>no problem tom, and meant to say

    off to a good start regardless of hiccups

    just cleared cache(now clicking on board index doesn't work, have to use the ipaddress to get here)

    this is what I meant, these icons:

    <img src="http://dl.dropbox.com/u/1013446/websitestuff.JPG" border="0" />

    <img src="http://dl.dropbox.com/u/1013446/othersitestuff.JPG" border="0" />

    also, the post options thing had an icon at first and now it's not displaying either

    and maybe a link to gravatar in the profile options would be cool

    I had no idea I could set my avatar until newt told me in chat

  • <div id="swiffout"></div>k remembered some of the stuff

    first, the miniicon Does work for scirra.com, but not for the forum

    scirra.com/forum goes to the old forum with the maintenance message, until you click board index.

     they were working before, but now it says "topic" or "forum" in ugly overlapping text, instead of showing the icons next to each topic and forum

    the url doesn't say scirra.com when on forums, it shows the ip-address/forum

    also, no edit button I can find, and no report button, and there's already been new unreportable spam

    also, the new tube tag you mentioned one time isn't present

  • <div id="swiffout"></div>i agree the white header is too white.

    also, there's no miniicon for the url and tabs

    this is probably a transitional thing, but i and others(some moreso than others depending on region I suppose) are still getting the old site and forum sometimes, when using the same urls  we use to get this one

    the aforementioned bbcode thing.  old bbcode doesn't work

    damn...there was a more major bug I wanted to report but can't remember now

    also, random errors where it goes to an error code screen sometimes when attempting to login

    and SIGS!!! we need SIGS!!!

  • Only able to see the screenshot right now., cuz I'm at work, but it looks great.

    Art degree indeed

  • still kinda curious about the calculation and command end of things, the plug does slightly graphics intensive stuff, but ridiculous craploads of math

    quote]

    A test that checks the raw event running performance - perhaps a 'repeat 10,000 times' event performing some simple action - would be interesting. I might make one!.

    please do

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