Guizmus's Recent Forum Activity

  • Wossi

    For changing the color, just look at the event 2 action. The color is a local variable on each Light object, you can change it there.

    As for the background, I can't help you, I don't know.

    Just so you know, on a classic office computer (no fancy graphic card, 2GB RAM), this project got my firefox and chrome to crash. Canvas takes a lot of resources on top of C2...

  • Hey,

    "Object reference not set to an instance of an object"

    This error means that the game crashed when you tried to handle an object that wasn't in the layout.

    Said differently, you are manipulating an object (sprite or any other object) in a layout, but didn't have any instance of this object in the layout at the start.

    It is important to have at least 1 instance of any object you need at the start of the layout. If there are enemies to spawn, but you don't want them at the start of the game, then put at least 1, and destroy it at the start of the layout. But if you try to "spawn" an enemy without one present at the start, it will crash.

  • You do not have permission to view this post

  • cesarzevil

    What did you try to solve this problem ?

    Did you understand where this comes from ? Look at your events. As you describe it, "When click on red ball and drag over the yellow ball, both balls are thrown". This means that the "trowing" event is also triggered when the mouse goes on top of the yellow ball.

    So if you want the mouse to trigger only the first ball it touches during clicking, you need not to activate the "ivPickedBall" of each ball every tick. Instead, you need to activate only the first ball touched, and then set this boolean to false on touch end.

  • nimos100 Still great piece of advice for any new developer. This isn't restricted to C2, it's great coding practice and will save a lot of time to anyone going for anything big. And for the experts, it's also a good reminder !

  • Tom

    Lots of testing on the attachments and some details that could even better this system :

    • it is possible to see the list of attachments we sent from the control panel (very nice), and so to use the same attachment using its URL in other posts. Doing so, could the post parsing function detect it as an attachment and not a standard URL ?
    • in the post about URL posting limitations, it would be nice for new users to see that the solution instead of URLs is the attachment, at least to mention it in the post to promote the use of this tool
    • would an "update attachment" function be useful ? Replacing the old file with a new one, reduction server-side space used in those cases ?
  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You need to save in a variable what was the last ball thrown. If it was red, then the event with yellow balls collision has to be deactivated. If it is yellow, the event with red balls collision has to be deactivated.

    You'll find your project modified with this change as attachment.

  • Ho, sorry, I misunderstood you. Yes, having a pickByComparison working with strings would be nice, and my solution was just a work-around to do with this problem. You are right, it would help and be more user-friendly.

  • And what about picking like this ?

  • kota

    Rabenmutter wasn't harsh or anything. He gave you tips on how to tackle this domain that is the game development, in particular with C2. You need to do examples, tutorials, and try it yourself. You don't need to read tutorials, you need to do them yourself.

    Look at the "Cloning the basics" for example (Pacman or Breakout). All assets are given, for you to program it yourself. If will teach you things, you will get better by doing, not looking at things. And asking for pre-made example or videos won't help you if you don't try, and learn from your errors.

    You also need to understand that, demanding like you do without showing that you tried, where you had problems, and everything, can and will be received as rude. Everybody on here is helping on their free time, and I don't think people just want to give away built stuff. The goal of this HowDoI section is to help new comers (and others) to learn by themselves.

  • Nicely done. That's what I tried to do at first, but I'm not the best at visual effects...

  • I saw the issue in Chrome, and in Firefox.

    It works again right now though, but I had that problem when I posted from both browsers. Nice if it's only me, I was a little panicked ^^

Guizmus's avatar

Guizmus

Member since 26 Mar, 2013

None one is following Guizmus yet!

Trophy Case

  • 11-Year Club
  • x4
    Coach One of your tutorials has over 1,000 readers
  • Educator One of your tutorials has over 10,000 readers
  • RTFM Read the fabulous manual
  • Email Verified

Progress

15/44
How to earn trophies