winkr7's Recent Forum Activity

  • rexrainbow

    Thanks. That fixed the problem with Remove chess by UID. I am also seeing this.getWrapMode is not a function in another project but I have not isolated it into a small capx yet. I will post it when I track it down.

    Thanks for your time and thanks for the plugins.

    yours

    Winkr7

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • rexrainbow

    I still get the crash--It says its in SLG_boardplugin. I don't think it is board_edge.

    I downloaded, board, edge and slgmovement and tried again, Same capx in the above dropbox still crashing,

    Thanks for your time.

    yours

    Winkr7

  • rexrainbow

    I have a crash in the board plugin. Remove chess by UID crashes, whereas remove chess does not.

    Here is a short capx that shows the problem. It will crash as soon as you run it.

    https://www.dropbox.com/s/hjyld9e8jmvrjo5/meg.capx?dl=0

    Thanks for your time, and thanks for the plugins.

    yours

    winkr7

  • You need to drag the png onto a layout at which point it becomes a "sprite" object. Then you can manipulate its rotation angle in an event sheet attached to that layout.

  • Hello;

    I have to agree there are some strange things about C2. Most programmers think of a character as a collection of attributes one of which is the sprite. But c2 (probably correctly) has you fill the sprite with your characteristics and then sticks it on a layout. A programmer would think "fine, when I go to the next layout I will just turn his sprite off till I want him again", but it turns out you can't send your sprite to the next layout you have to make him global in which case he is in everylayout and he is still recieving mouse clicks in invisible.

    You could put him in a global dictionary and "instantiate" a new sprite for him when he happens to be on a layout--but you are starting to need to program to do this kind of thing. You could put him in static variables in an event sheet and do the same thing, but once again you are starting to have to program. So yes, it takes a while to figure this stuff out. It is easy to get something up and working in a few days, but you really have to work to understand C2. Game maker has the same learning curve and it is not as consistent.

    It takes some time to learn C2 (I still can't figure out when to use wait 0) but it is well documented and very consistent and you can always get very good help for free within a few hours.

    To the OP--its worth the work so stick with it. Ask more detailed sprecific questions if you have trouble.

    yours

    Winkr7

  • "I strongly suggest to avoid global variables as much as you can if you plan to do a big project. Global variables bring mess to the project and block the possibility of encapsulation. It is already a pain in C2 that all functions are global."

    Yes, just put a static variable in a group block and access it with get and set functions. One problem with global variables is they always pop up when you want to set a variable.

    yours

    winkr7

  • Thanks GamesCorpStudio.

    ctrl+c and ctrl+v? as long as you have the same variables and objects C2 will be able to copy from a project to another the event sheets just by copy pasting...

    This is what I try to do, but it almost always tells me I have a variable I have to declare (a static variable in scope usually) and I have to go and fill these all in.

    I don't understand your wait 0 explanation, but I will read the manual again as you suggest.

    thanks for your time.

    yours Winkr7

  • I think you don't have access to a previously created object except by pick by uid until the next tick.

    I am not sure that is the problem, but I suspect it.

    yours

    winkr7

  • I think C2 is great, but I would like to know how the real pros transfer their favorate set of functions from one project to another? How do the real pros get around pinning different objects in a family-like way as the op is asking. Just when do you have to "wait 0"?

    your humble servent

    winkr7

  • Thanks for the fix rexrainbow.

    Its working.

    yours

    winkr7

  • rexrainbow

    Here is a short capx showing a crash in Is Chess On Board.

    https://www.dropbox.com/s/5oa8tfp787rch46/meg.capx?dl=0

    Thanks for your time.

    yours

    Winkr7

  • Hello;

    How do I upload a json string to the web server? The same server I started the game from? I just want to send a text string up and call the file TryOne.txt on the server. Do I use AJAX for this?

    How do I get it back off the server and into the game? I don't want anything complicated, just a simple string transfer to and from the server. Same file name on the server both ways, same string both ways.

    thanks for your time.

    yours

    Winkr7

winkr7's avatar

winkr7

Early Adopter

Member since 23 Oct, 2014

Twitter
winkr7 has 2 followers

Trophy Case

  • 10-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Regular Visitor Visited Construct.net 7 days in a row
  • Steady Visitor Visited Construct.net 30 days in a row
  • Enduring Visitor Visited Construct.net 90 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

17/44
How to earn trophies