Author Topic: Experimental Lab  (Read 4939 times)

0 Members and 1 Guest are viewing this topic.

annikk.exe

  • Achiever
  • Ent
  • ****
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 1,794
Re: Experimental Lab
« Reply #60 on: May 18, 2012, 04:49:05 PM »
Whoops - I forgot a "do" :>


Code: [Select]
function LevelSetup()

end

function LevelLogic()

for i = 0,2 do
MessageBox("Fluffy")
end

end

How about that code?  It works on my PC.. :>

Tomfloria

  • Shrub
  • ***
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 232
  • First iOS modder :D
Re: Experimental Lab
« Reply #61 on: May 18, 2012, 05:46:01 PM »
Don't understand why I personally didn't see that

Tomfloria

  • Shrub
  • ***
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 232
  • First iOS modder :D
Re: Experimental Lab
« Reply #62 on: May 18, 2012, 05:47:29 PM »
I only get one messagebox haha

annikk.exe

  • Achiever
  • Ent
  • ****
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 1,794
Re: Experimental Lab
« Reply #63 on: May 18, 2012, 05:59:43 PM »
Interesting..

I wonder if it doesn't support For loops.. or if it doesn't support stacked messageboxes.


How about this one?

Code: [Select]
function LevelSetup()

end

function LevelLogic()

x = 0

for i = 0,2 do
x = x + 1
end

MessageBox(x)

end

I got a messagebox with "3" in it.  What do you get? :>

Tomfloria

  • Shrub
  • ***
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 232
  • First iOS modder :D
Re: Experimental Lab
« Reply #64 on: May 18, 2012, 06:04:39 PM »
Nothing happens now :/ but the level works

annikk.exe

  • Achiever
  • Ent
  • ****
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 1,794
Re: Experimental Lab
« Reply #65 on: May 18, 2012, 07:31:20 PM »
Interesting.  So maybe iPad message boxes can't display variables.


Try this:

Code: [Select]
function LevelSetup()

end

function LevelLogic()

x = 0
MessageBox(x)

end

MessageBox works for you normally, right ?

Tomfloria

  • Shrub
  • ***
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 232
  • First iOS modder :D
Re: Experimental Lab
« Reply #66 on: May 18, 2012, 07:59:04 PM »
MessageBox("hi my name is Tom") will display a box with the text MessageBox

Tomfloria

  • Shrub
  • ***
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 232
  • First iOS modder :D
Re: Experimental Lab
« Reply #67 on: May 18, 2012, 08:07:49 PM »
That code doesn't do anything Annikk :D

annikk.exe

  • Achiever
  • Ent
  • ****
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 1,794
Re: Experimental Lab
« Reply #68 on: May 19, 2012, 12:47:01 AM »
Ok so iPad message boxes can't display variables. :>

Useful to know..

Tomfloria

  • Shrub
  • ***
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 232
  • First iOS modder :D
Re: Experimental Lab
« Reply #69 on: May 19, 2012, 12:53:11 AM »
This is off topic to our discussion but has anyone of this forum created a world Gravity,

As in, one massive planet, which would be a world. And then other smaller asteroids which move around that world, similar to your gravity suggestion, but a more defined path.

Aino

  • Ent
  • ******
  • Thank You
  • -Given: 1
  • -Receive: 20
  • Posts: 1,483
  • They'll eat you next!
  • Eufloria: Yes
Re: Experimental Lab
« Reply #70 on: May 19, 2012, 08:05:53 AM »
Look at annikk's mechanics, there is a gravity function there which allows you to create orbiting asteroids.

annikk.exe

  • Achiever
  • Ent
  • ****
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 1,794
Re: Experimental Lab
« Reply #71 on: May 20, 2012, 01:19:44 PM »
Gravity is a lot of fun to play around with.. :>

Tomfloria

  • Shrub
  • ***
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 232
  • First iOS modder :D
Re: Experimental Lab
« Reply #72 on: May 20, 2012, 01:33:20 PM »
Gravity doesn't work with IOS :D

annikk.exe

  • Achiever
  • Ent
  • ****
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 1,794
Re: Experimental Lab
« Reply #73 on: May 20, 2012, 01:48:16 PM »
I wonder why not.

Maybe asteroids can't move on iOS?

Tomfloria

  • Shrub
  • ***
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 232
  • First iOS modder :D
Re: Experimental Lab
« Reply #74 on: May 20, 2012, 01:56:44 PM »
Your Gravity-After.lua file on my iPad loads, and shows 4 Asteroids, but other than that, nothing.