Hey, we have forums!

Author Topic: Tile effects on a mac?  (Read 16153 times)

0 Members and 1 Guest are viewing this topic.

Offline calebj

  • Bit
  • ***
  • Posts: 28
    • View Profile
Tile effects on a mac?
« on: October 25, 2009, 11:23:17 pm »
Hello,

I played aquaria and was amazed at the detail and beauty involved in it.  After finishing the game I started playing around with modding.  I have used the forums alot and found them very helpful but still haven't found a way  to do tile effects on a mac. ( I am using a macbook).  The site http://www.ambrosiasw.com/forums/index.php?showtopic=123007 gives most of the controls but they havn't found a way to do tile effects.

Any help with this and/or other advice would be appreciated.
Thanks!

Offline Yogoda

  • Extra Bit
  • *****
  • Posts: 144
    • View Profile
Re: Tile effects on a mac?
« Reply #1 on: October 26, 2009, 08:37:01 am »
There is no numpad on Mac ? (I don't know Macintosh well)

On PC, it is 0-7 on the numpad
« Last Edit: October 26, 2009, 10:15:25 am by Yogoda »

Offline Wenzor

  • Bit Bit
  • ****
  • Posts: 86
    • View Profile
Re: Tile effects on a mac?
« Reply #2 on: October 26, 2009, 02:36:08 pm »
macbook is a laptop, so I don't think there's a number pad on there, unless you buy a wireless keyboard to connect with it.

Offline calebj

  • Bit
  • ***
  • Posts: 28
    • View Profile
Re: Tile effects on a mac?
« Reply #3 on: October 26, 2009, 10:08:12 pm »
No there is no numpad.  The number keys above the letters just select their respective layers.  The F keys also don't work but I can just use the menu for those commands.

Offline Alec

  • Administrator
  • Dream Bit
  • **********
  • Posts: 2211
    • View Profile
Re: Tile effects on a mac?
« Reply #4 on: October 27, 2009, 08:37:17 am »
You can use numpad keys with a mac if you turn numlock on... at least that's how it works on my Macbook Pro. (it maps certain alphabet keys to numlock keys)

Offline calebj

  • Bit
  • ***
  • Posts: 28
    • View Profile
Re: Tile effects on a mac?
« Reply #5 on: October 27, 2009, 11:12:52 pm »
Hmm...I'm using a MacBook aluminum.  Apple decided the numeric key pad/numlock wasn't necessary so it doesn't have one.  I might just have to settle for no tile effects  :(

Offline ryos

  • Bit Bit
  • ****
  • Posts: 57
    • View Profile
Re: Tile effects on a mac?
« Reply #6 on: October 28, 2009, 09:23:11 pm »
You could also get an external keyboard. There are several here for around $5.

Offline Edwards

  • Bit Bit
  • ****
  • Posts: 93
    • View Profile
Re: Tile effects on a mac?
« Reply #7 on: October 29, 2009, 03:18:52 am »
Yeah, they took out the fn-key numpad a couple of years ago- Alec probably has one of the last MacBook Pros to have the feature (in fact, I was unaware that anything past the Intel transition had numpads).  Your best bet is either to get an external keyboard, or copy the maps to another computer late in development to add all the tile effects in one fell swoop.

@Alec: I don't suppose you could add an option to re-map the tile effects to different keys (perhaps shift-number row)?  It would really help development on Mac laptops... :puppy eyes:

- Edwards
You should only need one canister shell to bag your deer using your howitzer, but assemble more than one if  you have a mind to.1

Offline Alec

  • Administrator
  • Dream Bit
  • **********
  • Posts: 2211
    • View Profile
Re: Tile effects on a mac?
« Reply #8 on: October 29, 2009, 06:01:20 am »
Yeah, they took out the fn-key numpad a couple of years ago- Alec probably has one of the last MacBook Pros to have the feature (in fact, I was unaware that anything past the Intel transition had numpads).  Your best bet is either to get an external keyboard, or copy the maps to another computer late in development to add all the tile effects in one fell swoop.

Hmm, weird! Yeah, my Macbook Pro is maybe 3 years old or more now I guess.

Still strange that there isn't some other way to do it...

Offline ryos

  • Bit Bit
  • ****
  • Posts: 57
    • View Profile
Re: Tile effects on a mac?
« Reply #9 on: October 29, 2009, 06:33:41 pm »
ControllerMate would let you bind the key combos of your choice to send numpad keystrokes, and only when Aquaria is frontmost. Of course, at $15 it costs more than a cheapo external keyboard, but it's good for other things besides.

Offline calebj

  • Bit
  • ***
  • Posts: 28
    • View Profile
Re: Tile effects on a mac?
« Reply #10 on: October 30, 2009, 10:49:18 pm »
I think it would be easiest to get an external keyboard, but it doesn't matter that much to me because I'm the only one playing my levels.  Thanks for all the advice!

Offline calebj

  • Bit
  • ***
  • Posts: 28
    • View Profile
Re: Tile effects on a mac?
« Reply #11 on: October 30, 2009, 11:12:32 pm »
There are also two more things I have come across. 
1. I made my mod like the mod editor on here said but the description doesn't show up.  My .xml file looks like this:
<AquariaMod>
   <Fullname text="Caleb Test mod"/>
   <Description text="Test mod"/>
</AquariaMod>
When I go into mods and look at it the description text says "No Description"
I previously had the problem that when I clicked on my mod it would load an empty map but I realized I had copied the mod-init.lua from the energybattle mod.  I changed the loadMap to my map and now it works.  Does this have anything to do with why there also is not a description?

2. Flipping an entity: I couldn't find how to flip an entity until I found a node in other mods called "flip."  This is not such a problem but can all entities supposed to be flipped?  For example, I put the node around an "architect" and it works fine.  When I put it around the "strangecreature" nothing happens.  Can the strangecreature not be flipped?  Is there a way I could make a flipped version to add?

Thanks, Caleb
 

Offline Yogoda

  • Extra Bit
  • *****
  • Posts: 144
    • View Profile
Re: Tile effects on a mac?
« Reply #12 on: October 31, 2009, 12:11:05 am »
You can not manually flip an entity, but you can add this code in the script of any entity to flip it with a FLIP node. Only some entities have this code in Aquaria.

Code: [Select]
function postInit(me)

f = entity_getNearestNode(me, "FLIP")
if f ~= 0 and node_isEntityIn(f, me) then
entity_fh(me)
end
end

If the entity is moving, you can just use :

Code: [Select]
entity_flipToVel(ent)
in the update() function to flip it according to it's direction

You can also use this in the init() so the entity will be randomly flipped when it is created :

Code: [Select]
if math.random(2) == 2 then
  entity_fh(me)
end

Of course if you modify an entity's script, you have to copy it in your mod first.
« Last Edit: October 31, 2009, 12:28:57 am by Yogoda »

Offline calebj

  • Bit
  • ***
  • Posts: 28
    • View Profile
Re: Tile effects on a mac?
« Reply #13 on: November 01, 2009, 08:06:27 pm »
Thanks Yogoda!  Still need help on the description though. 

Offline Guy

  • Bit Bit
  • ****
  • Posts: 62
    • View Profile
Re: Tile effects on a mac?
« Reply #14 on: January 21, 2010, 05:43:37 am »
One solution for the numpad issue is to temporarily borrow an external keyboard with a numpad from somewhere and use Spark to setup some other keys (eg, control+num) to function as numpad keys.
« Last Edit: June 17, 2010, 11:03:12 pm by Guy »