Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Topics - freshworks

#1
Oke, i've tested some simple things with prototype, but cannot get what i need, probally there is a way :) 


First of all:

I Cannot create a new file, added to the project with a prototype definition and functions included, i get errors. Looks like the functions need to be beneath the mainloop. Putting both, PROTOTYPE and the according functions in a second file in the project, causes errors.


Second, most important:
The code be beneath does not work , because i cannot call the player.x and player.y  within the function ShowPlayer or is there a way to do so ???? It would be nice when we could make a call like this.x , this.y etc. (see code for example) the ShowPlayer is the most interesting!


Third:
Can't i return a TYPE from a function like newobject = functionname() <= then the function will create a global new object (prototype) and return this into a var as object, easier to handle :)



Code (glbasic) Select

// PROTOTYPE SOME FUNCTIONS AND PROPERTYS //

PROTOTYPE sInit: x, y, filename$
PROTOTYPE sShow:
TYPE TPlayer
   x
   y
   spriteid
   Init AS sInit = InitPlayer
   Show AS sShow = ShowPlayer
ENDTYPE


// INIT TPLAYER / GAME LOADING ETC //
GLOBAL player AS TPlayer
player.Init(0,0,"Media/grossini.png")


// MAIN LOOP //
WHILE TRUE
   player.x = 0
   player.y = 100
   player.Show()
   SHOWSCREEN
WEND
// END MAINLOOP //






// PROTOTYPE FUNCTIONS / METHODS //
FUNCTION InitPlayer: px, py, filename$
   sprnum% = GENSPRITE()
   LOADSPRITE filename$,sprnum%
   player.spriteid = sprnum%
ENDFUNCTION // INITPLAYER


FUNCTION ShowPlayer:
   DRAWSPRITE [ thisobject.spriteid],[thisobject.x],[thisobject.y]
ENDFUNCTION




Hope it's clear a bit, cheers.
#2
channel GLBASIC at irc.freenode.org  :)
#3
Hi,

I've created a bundle identifier like NL.FRESHWORKS.*. Now when i build for iphone there's default COM. in front of the bundle identifier name in the info.plist.

Could there be an option into the project options for iphone to set the extension like com, nl or whatever a developer uses. Or that i could place in the company field the whole bundle identifier like nl.freshworks, this wont work now.


Thanks,.
Freshworks
#4
Hi,

Searching for an code example on how to scroll a background / level map / sprite with the touch/drag of a finger in the direction X, Y where the screen is bigger then the iphone 480 * 320 resolution itself.

Eventually there will be sprite what will be moving on the touch of a finger from Xold to Xnew and when it reaches x% of the resolutions border the background needs to scroll too.

Couldn't find anything on this forum so far

Erhmmm hope it's clear :)

i would love to accomplish something like this : http://www.youtube.com/watch?v=JVowHErySnc


Thanks,
Freshworks
#5
Hi,

I'am looking for some code examples to implement in a project i'am develiping for the iphone.

Will there be any possibility for the iphone to manage parallax scrolling ?

Thanks,
Freshworks
#6
FAQ / Where is my License ?
2009-Sep-02
HI,

Yesterday i did a direct order (paypall) on the website and paid 65 EURO. Still now message, response, mail or license key ?????

QuotePlease buy directly with PayPal if you can:
PayPal-Logo
Buy the GLBasic SDK premium (full version) now with PayPal

As i get a transaction number from paypall, the bill is paid!!


- sended a private message
- sended a mail true the online website

Getting a little bit confused here.

pls let me know.

Need to start develop  :O

Cheers,
Jespar