Switch from Code Blocks to Line Code

0 favourites
From the Asset Store
solution for games like "fruit ninja" and drawing applications
  • I think that there are some aspects to the copy/paste/move that didn't seem to work as expected until you realize there is a difference in clicking an event vs clicking an entire box... I do agree that sometimes It doesn't seem to work as smoothly as it could.

    I really like the idea of a line based event editor that is similar to simply writing code. Once you understand the event system and all the commands it is much simpler to just bang em out via type than the messy box dialogue system.

  • Mega, you are a real treat. I am a college instructor (although not in computers or academics) and you strike me as the typical type of soul who cannot help anyone else because they are all beneath you while at the same time being the one who disrupts the class with your superior knowledge of all things.

    In that case, use your collage instructor power of deduction to solve the problem yourself.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Phoenix thanks so much for the info on invert. I am only familiar with what that does in graphic editors and found it quite out of place in this setting. They should have just gave an option for "is" or "is not". very confusing in places but I imagine I will get it over time. Thanks again.

    Arima thank you as well. I am using the tutorial that sets up LOS to learn how to do this and later in the tutorial it names all of the objects again in Line of Sight. I can look at the options and change it for now as I don't want to move forward until I understand what is going on here. Thanks again.

    Ruskul Right on, This is a beautiful set up as far as people not having to code at all and other games have tried block code type interfaces. The problem is that it is way harder to try and comprehend how another individual has interpreted the way code should be layed out rather than see how it physically looks and works together. This is great but it would be much easier to understand if the block titles were a bit more precise in places. For instance the invert action. This is common in graphic editors but trying to see it as an or for is can be a bit of a stretch to most folks and these types of issues run throughout this editor. I still cannot get copy/paste to work properly (honestly I havn't tried again lately) but I will keep at it. Thanks .

  • > Mega, you are a real treat. I am a college instructor (although not in computers or academics) and you strike me as the typical type of soul who cannot help anyone else because they are all beneath you while at the same time being the one who disrupts the class with your superior knowledge of all things.

    >

    >

    In that case, use your collage instructor power of deduction to solve the problem yourself.

    Nothing personal but you are a straight jackass Mega, do me a favor and go help someone else.

  • >

    > > Mega, you are a real treat. I am a college instructor (although not in computers or academics) and you strike me as the typical type of soul who cannot help anyone else because they are all beneath you while at the same time being the one who disrupts the class with your superior knowledge of all things.

    > >

    > >

    >

    > In that case, use your collage instructor power of deduction to solve the problem yourself.

    >

    Nothing personal but you are a straight jackass Mega, do me a favor and go help someone else.

    That's all right, bro, keep whining.

  • Ok, that's enough of that. megatronx, I understand you're having a hard time imagining why someone would have difficulty copying and pasting something, but that sort of attitude in response doesn't help anyone and just escalates things and gets people upset, which you just saw happen. Perhaps there is something you're missing about his situation why copy and paste isn't working right, maybe even something he's unaware of like some third party software interfering somehow. If you don't feel like posting anything helpful in a non-antagonizing fashion, then please don't post in that thread. We're trying to keep this place friendly as possible for everyone, and posting in that manner never causes good feelings.

    Spindraft, I understand your being upset with megatronx's posts, but personal attacks are not allowed on this forum either, so please refrain from using insults and notify a moderator instead.

    So please, everyone, calm down. The point of this place to try to help people, so let's try to get this thread back on track. I'd rather not lock the thread.

  • Spindraft,

    Click full editor, and scroll down below text box you will see upload attachment. Click that And upload an example capx. Walk us through exactly what is the issue.

    Couple things to note. This is code, not word document

    And programmers are shortcut users, so have a look here (I have it on my wall at all times) will attach a nice printable copy for you.

    I speed read this, so forgive me for not hitting all your issues.

    I just want to cover the red X - this can be found by right clicking the event and you will notice X invert <- that is how you insert the X

    What the X does is very very important. If you read the manual (this is not an attack, it is a nudge) you will have read about conditions and would know that Conditions can be inverted, which flips the thing they test (very cool feature)

    For example, the condition Monster is overlapping Player is true whenever a monster is touching the player. However, if inverted, it appears with a red invert icon X and means Monster is not overlapping Player.

    If you put those into the code, everything shoud work.

    Also because this is code, you cannot copy and paste anywhere. It is a safty feature. you can't paste code that references an object when that object doesn't exist for example.

    Anyways, I understand where everyone is coming from. It is extremely frustrating to help someone when they are not prepared to learn - Any software comes with a learning curve, and most folks won't even open a manual.

    C2 is has a learning curve, it takes a programming learning curve of everest, and turns it into a gentle hill. But it still requires learning. So we veterans like to check on is user actually willing to do some work and learn. In your case you haven't even read 20 pages of the manual - So understand that we trying to talk the same language, but you don't know the language.

    The mod has stepped in and called a seace fire, which is great, no one likes conflict. But we also don't have to help anyone either. megatronx has a wealth of knowledge, and he is actually very helpful, but you didn't meet him halfway in actually reading the manual. This is what started the confrontation.

    So recap. Read the manual. Make references to sections within and use the upload attachment feature when making posts by adding example capx. Give info as much as possible.

    But inportant - READ THE MANUAL. Check out tutorial section. Build a few example games (such a large amount of knowledge found > Open construct > click new > scroll down to examples and open them up ) Be blown away with those babies

    Edit: Forgot to add your nice printable shortcuts

  • [quote:3k0u2tst]I had this working then rearranged some things and now it does not work. I have found that at times simply changing, adding or deleting code does not activate properly when testing the game. Its as if the whole thing is stuck in the previous scope and unable to update to the new commands.

    Cont:

    Okay. Firstly never ever delete code - Disable it. Right Mouse click - Toggle Disable (it strikes it out) Delete code only at end when everything is finished, working.

    How you testing?

  • I apologize to all for my part in the argument. I also thank those that helped. The copy/paste issue was never really meant to be the main focus of anything, it was a mention on my part to suggest that whatever the current deal is/was should be adjusted. I can open the HTML pages so can copy/paste in there just fine. I found the "invert" reference, it is under Conditions in the manual but it is still out of place in a code editor and easily overlooked by those who would know its normal use which is in graphical editors like GIMP. I admit that I did not read the Manual page for page. I read through the first couple of sections and then began to search out the portion that dealt with the area I was working on. Good tutorials should also explain what can go wrong and how to correct it as well which the ones I read don't. Everything is written from the point of view that the reader has complete understanding of the material which is almost never the case. I have one layout, am working on the art, story idea, reading tutorials, browsing the forum for info and practicing code block so I think it is quite natural to utilize the forum to help with a trouble area as well. What I felt like is that Mega saw the short number of posts under my avatar and marked me as illiterate based on that. Is all fine, I have worked with many programs and they all have their differenceces, code blocks just present a new set of problems to learn. I appreciate that Mega has a wealth of knowledge but I do not feel the need to bow down at ones feet to ask for it. Thanks to all and again I apologize to the board for my part in arguing.

  • Even with all its quirks, Id still rather deal with events, then have to put up with the nonsense syntax of code.

    Pasting code might seem like an alternative. but you don't really get an understanding of the logic when you do that sometimes.

  • Spindraft

    It was easy to realize for everyone that you just starting with the software by the fact that you have issues with communicating its basics. You had no reason after my first post to come back at me with your pseudo-intellectual offense, assuming I'm so stupid I won't get your sarcasm. It's hardly possible to help if other person is not using same terminology. Expect people not to help solve simple problems that can be resolved quickly with manual, tutorials and some >experimentation<. So sending you back to manual and tutorials was right thing to do.

    I write my code's logic on paper. Then doing it in C2 is fairly straight forward. But I already know what I can do in C2. If the workflow is not suitable for your liking then there are alternatives like Unity or GM, where you can script the code in a common fashion.

    Goodbye

    Arima

    I know that moving things around in event sheet can get clunky, that's why in my first post I've send the man to the manual. Even if it wasn't the answer he was looking for, Spindraft struck a nerve with me with his passive-aggressive, egocentric response.

  • Ruskul Right on, This is a beautiful set up as far as people not having to code at all and other games have tried block code type interfaces. The problem is that it is way harder to try and comprehend how another individual has interpreted the way code should be layed out rather than see how it physically looks and works together. This is great but it would be much easier to understand if the block titles were a bit more precise in places. For instance the invert action. This is common in graphic editors but trying to see it as an or for is can be a bit of a stretch to most folks and these types of issues run throughout this editor. I still cannot get copy/paste to work properly (honestly I havn't tried again lately) but I will keep at it. Thanks .

    True true. That is a good point.

    When you copy paste, have you noticed that if you click an individual component of an event, it only copies that component when another event is selected and paste is used. If you select the whole event and copy when hiting paste it usually puts it below the event selected.... though I sometimes have to move it after pasting and then move another event when sub events are used.

  • Hello Spindraft

    .... or else it just does not like WIN8.

    As for reading tutorials I am quite capable of this and this is what irritates me about it. I had this working then rearranged some things and now it does not work. I have found that at times simply changing, adding or deleting code does not activate properly when testing the game. Its as if the whole thing is stuck in the previous scope and unable to update to the new commands.

    I just want to know why this does not work when every tutorial I have read says it should.

    Just a thought since you are running Win8. I develop games for Widows Store, currently using Win8.1, and always test using IE.

    I have noticed that with IE if any changes don't seam to be working then you may just need to delete the browsers history.

    IE is definitely a bit of a pig in this regard, it has got me frustrated a few times when things that I knew should work didn't. So now I tend to do this quite often out of sheer habit.

    So if you are testing in IE that may be some or the issue here.

    I am trying to post the dropbox URL for the .capx but now I have to have 300 rep to do that, how in the world can one do what is asked of him when all that lies in the path are obstacles?????

    Yeah - a moderator may want to correct me here if I am wrong:

    That is an anti spam thing - bit frustrating no doubt - but I think Ashley and Tom had good reason to make it that way.

    However I think you can just provide the partial address for your mycpaxondropboxurl - just leave the www stuff off and other posters can add that themselves, until you get enough rep. Most of the folk here are more than happy to help and don't mind doing that.

    Hope this helps.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)