Semo's Forum Posts

  • I'm having similar problems when using pin. I have a shield around my spaceship and when i use pin it warps all over the place.

    I changed it to: set position on every tick and that's working fine.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Got mine today as well! Thank you!

    <img src="http://imageshack.us/a/img9/1180/p1953090213.jpg" border="0" />

    Love the hand written card!

  • Link to .capx file (required!):

    dl.dropbox.com/u/139739932/New%20folder/starminer.caproj

    Enjoy its corrupted :/

    Steps to reproduce:

    1. make text bold

    2.

    3.

    Observed result:

    Crash. Had to reboot pc

    Expected result:

    Make text bold.

    Browsers affected:

    Didn't get that far.

    Operating system & service pack:

    windows 7 64bit sp1

    Construct 2 version:

    beta r117 free edition

    Save file and backup where both corrupted so i lost the project. 82 events gone. As you can imagine i am not amused by this.

  • So i had a crash when i tried to change some text to bold. I knew it would probably happen so i saved it before i tried to change it. Pc did indeed crash as expected.

    When i tried to load my save it i get the error:

    failed to open project

    error document is empty

    I tried to open my backup:

    Unable to open for unzipping.

    I checked the event xml and it seems fine.

    Checked the layout xml and it doesn't show me anything. Not sure if this is correct i'm still new to all of this.

    I was nearing completion of my game so please don't tell me i have to start all over again?

  • Not really sure what you mean i'm still using the free version but i guess you could make a global variable 0. When sprite 1 is destroyed set the global variable to 1. If the global variable is 1 destroy sprite 2.

    Hope that makes sense to you.

  • Looks great! Whish i had the skills to draw like that.

    Working on my own space game atm but sadly i'm not much of an artist. I'm sure you are fairly busy with you own project but if you are willing to help me out with some background art that would be much appreciated.

    You can check a video in the "what you're working on" thread if you like.

    Again looks great and i'm looking forward to see more.

  • Short demo video of my first game ever. Still vary much a wip.

    The title is a placeholder. The project has not been named yet.

    I would suggest you watch it full screen ;)

    youtu.be/kJhf1sswElk

    [tube]kJhf1sswElk[/tube]

  • First screenshot of my first game. Still vary much a wip but i'm making good progress.

    <img src="http://imageshack.us/a/img26/2016/testqw.jpg" border="0" />

  • Or pin depending what you need i guess

  • System > every tick > set position > player.x,player.y

  • Depends on how many backgrounds you need. If you only need 2 then you can use an "instance variable" and set the type to "boolean"

    Set a key to "toggle" the "boolean".

    When "true" set background 1 to "visible" and background 2 to "invisible"

    When "false" set background 1 to "invisible" and background 2 to "visible"

  • Glad i could help someone else for a change ^_^

  • Ah i see my mistake. I used system "is between values" instead of sprite "is is between" Silly me.

    One thing though. You used an instance variable for angleBetween which does not work because "is between values" does not take 0 with a an instance. Changed it to a global variable and that did the trick!

    Thanks a lot for explaining it.

  • Thanks for all the replies.

    -snip- image

    This did not work for me and looking at what AkiraWong wrote i think i know why. "Is between values" does not let me set a value as >=

    Global variable:

    random = 0

    radius = 200

    Instance variable:

    Sprite2 (angleBetween = 0)

    Event:

    Every tick >

    Set random to (random+1)

    Sprite2 (Set position to (sun.X+cos(random)*radius, sun.Y+sin(random)*radius"))

    Sprite2 (Set angleBetween to (angle(sun.X,sun.Y,Sprite2.X,Sprite2.Y))

    Here control the angle which you don't want object to spawn~

    For your case:

    if Sprite2 (angleBetween <= 130) or (angleBetween >= 140)

    Sprite2 spawn GreenDot on layer 0 (Image Point 0)

    You may ask my angle is between 220 & 230~

    But why the angle in the code is (<= 130) or (>= 140)~

    That's because the calculation of angle(x1,x2,y1,y2)~

    The return answer is between (-180 to 180 degrees)~

    Start from opposite direction of the object~

    Yup. That's it. Hope it help. (^_^)

    I understand what you wrote and thanks for explaining how the degrees work. However like i said above it wont let met change it to >=. I also don't get why you put a +1 to random.

    While AnD4D solution seems to work it still bothers me that i can't get it to work with your or shinkan solutions. Sorry to ask this but maybe a capx file would help me understand.

  • Hello

    I want to spawn an object in a random location around another object. I have this working however now i want to cut out a piece of the pie. The object should not spawn between 220 and 230 degrees however i can't get this to work. I have some idea's of how it might work but i just don't see how i would implant this atm.

    Here's an example of the 360 spawn

    dl.dropbox.com/u/139739932/test/randomspawn.capx