Tokinsom's Recent Forum Activity

  • ^^; Sorry I wasn't trying to be mean, just making a joke.

  • Nice advertisement. Does YoYo Games pay well?

  • <img src="http://i369.photobucket.com/albums/oo136/4Sweet2Leaf0/Andelia/Andelia_Swamps1.png" border="0" />

    I'm going to finish this one, I promise!

  • If I ever make a game with an old wise man I'll be sure to name him Tulamide ;)

    Not that you've got a long grey beard and wear a cloak or anything...right? :P

    Anyhow.. Thanks! I remember reading about mod() back when I used MMF but I never really looked into it. The more you know..

    Thanks for your suggestion too, Nifl. I'd go with that but mod seems a bit simpler :)

  • Say I start a loop that spawns 12 objects and sets their x positions to the loop index*8, and sets each one's .value('ID') to the current loop index.

    This will create a horizontal row of 12 objects and each will have an ID; 1 at the far left and 12 at the far right.

    Well, instead of a purely horizontal row, I want the objects to zig-zag. I thought I could do this by figuring out which objects have an even-number ID, and which objects have an odd-number ID, then reposition their hotspots to create this 'zigzag'.

    But um..how do I tell if the ID is an odd number or even number?

    I could just have 12 events comparing the IDs and telling each individual object to be higher or lower, but that sucks. I'd like to do this in one or two events if possible! Any ideas?

  • I was adding some new enemies to my enemy spawning group by copy pasting an old enemy spawning event, then changing the objects to the new enemy.

    Well, apparently this is a bad idea because every time I tried to load that enemy the game would crash. After trying a few things I decided to redo its spawning events from scratch, and suddenly it works.

    This has happened before in the past. Even if the (copy/pasted/edited) event is perfect, it won't work or will crash the game. Re-writing it from scratch in the exact same way fixes it.

    Any chance this can be looked into or is it another thing we'll have to live with? :<

  • Nice example there, but that part I have figured out, what I can't figure out is how to blend the tiles when there are many light sources.

    Here ya go

    dl.dropbox.com/u/17634050/TileBasedLight1.cap

    Just needed to add one more condition!

    Also I recommend NOT using nuovofill or any pixel shaders for something like this; it can really slow your game down. You said something about color filters earlier, best just stick with that!

    edit: actually animmaniac's example might be what you're looking for..the lights 'combine' becoming a lot stronger, where as mine just 'blends' the lights.

  • <img src="http://images.encyclopediadramatica.ch/8/83/Epic_reaction.jpg" border="0" />

  • 69.24.73.172/scirra/forum/viewtopic.php

    Download the second example (Doppel's)

    Is that what you're trying to do?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Pretty much the exact same way..

    +blah

    -set scrollx to player.x/160*160+80

    -set scrolly to player.y/120*120+60

    "whats maximum width & height in layout?"

    Probably a lot bigger than anyone will need!

  • If it can be done in CC it can be done in C2. (Well, eventually)

    scirra.com/forum/examples-tutorials-list_topic41594.html

Tokinsom's avatar

Tokinsom

Member since 6 Jun, 2010

Twitter
Tokinsom has 12 followers

Connect with Tokinsom

Trophy Case

  • 15-Year Club
  • Entrepreneur Sold something in the asset store
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Forum Hero Made 1,000 posts in the forums
  • RTFM Read the fabulous manual
  • Email Verified

Progress

21/44
How to earn trophies