Grimmy's Recent Forum Activity

  • You could give your bullet an instance variable eg "Bullet Type". Then when you check your bullets in code you check if their Bullet_Type is either regular or bouncy; then code the desired behavior for each.

    To switch between the bullets I guess you would have a variable like "Current Bullet Type" which gets adjusted whenever the player switches firing modes.

    On My Player

    If my firing mode = bouncy...create bouncy bullets (with a bouncy bullet type instance variable)

    On My Bullet..

    If I am a bouncy bullet (my instance variable is bouncy)...do bouncy things

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I have a bunch of character instances created using a for loop which are created with their hierarchical child objects.

    Each character is comprised of a few different parts..body, legs, head etc using the scene graph. But lets say I want to change the color of the body to something random for each of these. How do I do it?

    I can loop through the base object that created them (the legs in my case), but I have no idea how to access the children in code.

    Any ideas?

    Thanks

    Tagged:

  • Imagine Ive created a character and linked it all up with the scene graph hierarchy at edit time (using 'add selection to this instance' in the editor)

    I copy and paste the character 3 times

    ..but then I want to align the characters evenly along the horizntal axis..

    Currently the align option does this...

    Any idea how to resolve this and have the characters aligned as expected?

    Cheers

  • SOLVED.

    Select the object/s - right click and choose 'Wrap Selection'

    Now scale the red box.

    Cheers

  • Imagine Ive created a character and linked it all up with the scene graph hierarchy at edit time (using 'add selection to this instance' in the editor)

    ..but then I want to scale the complete character inside the editor. How do I do this?

    Currently it seems to scale every object individually around its own origin.

    Here is a video example: dropbox.com/s/zwyqr5jl9crhrv4/2022-03-30_17-17-50.mp4

    Thanks

    Tagged:

  • Okay. Good to know. Thanks

  • Great to know. Thanks Ashley!

  • Is this even possible?

    Thanks

  • Cant see how mesh is the same as a vector. My vector uses a tiny image that i can see on my sprite sheet and I can scale and manipulate it fine in game.

    But are you saying that this is created AGAIN at runtime like vectors as a new bitmap?

    Maybe Ashley could clarify again. Thanks

  • Thanks Ashley for the clarification.

    Also, it seems that when scaling up a small square sprite (if its just a solid square) there is absolutely no degradation in quality or blurring of the sprite. Additionally, I can even make simple (and big) shapes from it using the mesh feature which all have crisp edges even when using a tiny image.

    So win win.

  • By changing the spritesheet size to 1024 and setting the downscaling quality to low I managed to reduce the memory size to 45. However, the game still starts to glitch graphically after a few seconds and then eventually crashes out after about 20 seconds or so with no user input. It freezes and the screen goes white.

    No issues on any other platform and no issues when i run the remote preview on the same device.

    When I run the chrome debugger I see the following continuous 206 errors before the game drops out.

    206[Violation] 'requestAnimationFrame' handler took <N>ms

    index.html:1 WebGL: CONTEXT_LOST_WEBGL: loseContext: context lost

    c3runtime.js:3056 [Construct 3] WebGL context lost

    c3runtime.js:3166 [Construct 3] Suspending

  • So why would using an SVG be a better solution?

    I read somewhere that a scaled up small sprite is far better than using a large sprite or large SVG.

    There seems to be some confusion which I'm trying to clarify. Cheers

Grimmy's avatar

Grimmy

Member since 20 Nov, 2012

Twitter
Grimmy has 2 followers

Trophy Case

  • 12-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Great Comment One of your comments gets 3 upvotes
  • Email Verified

Progress

17/44
How to earn trophies