Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / what am i doing wrong (new to basic and to AGK) please help

Author
Message
haliop
User Banned
Posted: 13th Aug 2012 23:23
im trying to drop a ball from 0 (y) at random x using physics
this is actually from the examples , the 4 soccer balls that fall down

i want a new ball to spawn each XXX time so i use a simple timer but for some reason this dosent work , here is the code

again i am new to basic and to GDK so please be patient ,
ty for your time



haliop
User Banned
Posted: 13th Aug 2012 23:24
baxslash
Valued Member
Bronze Codemaster
17
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 13th Aug 2012 23:42
When using basic it helps to use floats, either by declaring them as floats or using a hash at the end of the variable name. Ie:

check# = sTime# + delay#


this.mess = abs(sin(times#))
haliop
User Banned
Posted: 14th Aug 2012 13:02
cool didnot knew that , but in this example i use integers anyway.. ty for telling me

Login to post a reply

Server time is: 2024-05-06 15:15:40
Your offset time is: 2024-05-06 15:15:40