Page 1 of 1

Football game

Posted: Sat Mar 22, 2014 4:21 pm
by ghails
Hi all!
Looking for some help on an idea for a football based game.
I was hoping for the game to work by the main character being a football book and hitting a football, which then lead to the football to move in that direction.
However I'am having trouble with the coding for the movement part for when the ball gets hit and if anyone could offer me some help that would be greatly appreciated!
Many thanks
George

Re: Football game

Posted: Sat Mar 22, 2014 8:30 pm
by sefrojones
Hi George,

I think you are looking for the "move" command. Search "move" in the dictionary in the IDE. Basically the command works like this:

Code: Select all

on mouseup

move myobject to mylocation

end mouseup

You can also use graphic lines and curves as your path of movement like this:

Code: Select all

on mouseup

move myobject to the points of graphic "line"

end mouseup
Hope this helps,

--sefro

Re: Football game

Posted: Sat Mar 22, 2014 9:54 pm
by bn
Hi George,

have a look at this site
http://livecodegamedeveloper.com/blog/2 ... de-pong.lc

it is a site devoted to developing games in LiveCode.

By all means explore the site and see what it offers.

Kind regards
Bernd