Kyatric's Forum Posts

  • is it possible, when drag and drop object to object can be placed only on some specific places? or if can be places where it cant simply be object droped?

    thanks

    It is possible, but it will be a little bit tricky.

    Lets take a Sprite object with the dragdrop behavior and Sprite2 as recipient.

    Someplace (global variable, private variable, ...) you need to keep trace of the original Sprite.X and Sprite.Y

    At last you also need a Keyboard & Mouse input object.

    In the event sheet:

    Event Sprite/DragDrop: Sprite.On drop

    Sub Event Mouse: Is mouse over object Sprite2 (inverted) : Position Sprite to original X and Y

    That means that you're droping Sprite anywhere else BUT on Sprite2 and then, putting back Sprite where it was, as it was never moved.

    This should do the trick.

    EDIT: Example: DragDropCancel.cap

  • Line object.

    Action set start X, set start Y to one of your sprite hotspot.

    Set end X, set end Y to the other.

    Each frame, move your objects and set the values of the line again.

    And if you still need the distance between the sprites you can get it using the system/math expression "Distance between points".

    (Or substracting spriteB.Y by spriteA.Y)

    I hope it helps.

    Edit: Ninja'd...

  • Snake type game + touch control. :

    Wurmi Construct 2

    Good idea to provide this game on construct2 too. (I saw you made it for CC originally)

    I have a few troubles though.

    I'm using Firefox5 (which has trouble with the looping option) and when I hit the "end game" message and the little music starts to play, it seems to be looping badly, even distorting and having some kind of reverb (I think the sound is played and overplayed too many times at once).

    Also I had to press esc the first time to make it stop looping.

    The issue about sound in firefox5 is known (check ashley's blog posts about it) so please consider a little bit of code to check if you are running the game in firefox or not (object browser, expression agent, value "Mozilla" something) and try to fix it. (when agent is mozilla => no loop, or something of the like)

    Else, it seems like a nice snake game, harder than the usual with the spawning red mushrooms.

    Keep on the good work.

    PS: I still think this topic should be stickied ^^

  • <font color=red>[Please give feedback of what you are thinking> I'm thinking that the colors in your post makes it hard to read. I think that you should "go to the line" more often, to make your text breathe. I think that you forgot to provide a link.

  • Wow that looks really nice !

    Lacks a bit of shadows of the mountains imo. They seems just put down on the ground. Something of a projected shadow on the ground would give them a bit more depth/realism.

    Still this is a remarkable job and this proof of concept is not that far from being a playable game.

    Very nice render. (I like the mask.png of the map !)

    Instant: I always have had false positives with CC's executables. (my previews/exports and those of other people). I use Kasperski 11 and it detects some sort of key logger.

    I used to have the same false positive with sdl games. What makes me say it's a false positive is that I used to run a sdl game with a previous version of kasperski (2010) without it saying anything, and the day I updated to 2011, SDL game were flagged.

    It is a warning of a potential harm. It has to deal with the way the keyboard is inputed in sdl games and CC.

  • Yes you need your images to have an alpha channel if you want transparency and so need an external tool to provide it. (C2 hasn't many built-in image editing tool yet)

    PNG format allows such layer. Also, before jumping to expensive tools, try the likes of the gimp or paint.net which are open source and/or free and provides a lot of functionnalities (including transparency).

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • It also happens when you delete an object in the object list (with the suppr key also) as long as there is still one object in that list. Like if the object is deleted, focus goes to root folder and try to delete again.

    And the tooltip seems to go down on each item deleted.

    (Three objects in the list, I delete the last one, the tooltip indicates sound folder, I delete the second one in a row, the tool tip indicates a place under the 'music' folder)

    The tooltip doesn't really go down, I guess in fact the list of remaining objects go up.

  • Is there a way that we can we port games made in Construct to Construct 2?

    Please answer, thanks!

    It is not at the moment.

    And porting a project that would rely on custom plugins will also be even harder as it will require that same plugin to be coded in javascript for C2.

    The thing is I and my team want to make a standalone Indie game that we can sell, but we also want to make it available online and our preferred method is either Java or HTML5 of course and It would be awesome if the limited demo version could be available free online in html5? Just wondering if that is possible yet? Thanks for taking your time to read and respond!

    Well at the moment C2 is in pre-alpha releases and totally free of charge. In the future, licenses might be determined by Scirra.

    So asking about a "limited demo [which] could be available free online" ?

    I'm not even sure what you mean, but as I said, as of now, Construct2 is nothing more than the soft you download at the moment.

    Same about different exporters. At the moment only html5 exporter exists, but in the long term there are planning to have other exporters.

    So I'd advise you and your team to keep working on Construct Classic for now (it must be the most advanced version of your project anyway) and when the time is right, go and make a version HTML5-oriented with C2.

    Or try doing both at the same time if the ressources of your team allows it.

  • For your first question.

    If your global variable is to be a string of character (like say the name of the player) use text.

    If the value of your variable is to be used in any mathematical operation or with actions that require mathematical operations, make it a number.

    You can always change the value of a variable in the event sheet, so you can leave it to 0 or "text" for now, and give it a value later.

    For your second, I'll let someone who's read the tutorial answer.

  • He may mean long games, I don't really see 40+ hr games being played on the web, not saying it can't be done but you may lose your saves because of cookies or it simply doesn't load your save as apposed to someone else's.

    Errr...

    This can also happen on "solid" window application.

    Plus C2 already has a plugin Webstorage that takes advantage of the disk space that browsers are now allowed to use on any computer they are executed on.

    There are 5 Mos (10 for chrome), and, it seems to me, it is not only cookies.

    I really can't understand why people are so negative about all this.

    FFS, you are given the opportunity to make easily games and applications that requires no other download than the mere assets of the application for your end-user and all I see is dissing.

    As far as I'm concerned I see potential and opportunity.

    Remember also that C2 was announced as an eventuality like in january. And look the way already made since !

    And it is still a one-guy developped tool !

    Even though I quoted you rukiri, this rant isn't directed towards you specificaly.

    It is more global, to any people dissing, whereas it seems to me it is dissing without knowing.

    Well all that to say, if you aren't pleased with what C2 has to offer right now, leave it be.

    CC has been developped for years, so yeah, it has far more features, more documentation.

    C2 is "only" on its 50th pre alpha release. ^^

  • >

    > Instead of having a light blob on you, I'd prefer a proper flashlight to see further in front of the player. You're really easily lost in dark areas right now.

    >

    > I like this very much so far. Gives you already a sense of survival which is needed for these kinds of games. Looking forward to future versions!

    >

    I don't understand.

    I think he didn't get that by pressing 'f' you could turn on/off the flashlight.

    Its beam is a bit narrow though, but it helps reinforcing the ambiance and the fact that "oh sh*t ! zombies eating me !!!"

    :D

  • Construct Classic (release 1.2) handles python scripting.

    Construct 2 is made of Javascript. So it is doubtful that another scripting language will be added to C2 (at least, not right now I guess) since the main language to make C2 is a powerful scripting language itself.

    This gives you the opportunity to make your own code into plugins, that you can then use as regular construct's objects.

    Now there's no code interpretor directly into the IDE. If you really want to use Construct and feed it with code, go python and Construct Classic r1.2

    Take a look at the topic Extending Construct2 with Javascript for more informations about javascript and C2. For python and Construct Classic: CC's wiki page holds the cheese.

    As far as lua's concerned, it never was implemented in neither CC or C2 to my knowledge.

  • how to install it?

    Unzip the cbhash.zip file (download link in the first post) into

    Root_C2_Folder\exporters\html5\plugins

    (check out the tutorial.)

    Great Work, Thanks :)

    Thank you :D

  • Remove the "http://www.scirra.com/forum/ " from the url.