Jump to content


Photo

android app wont start on phone


  • Please log in to reply
1 reply to this topic

#1 _226266

_226266

    GMC Member

  • New Member
  • 28 posts

Posted 11 March 2012 - 09:35 PM

im trying to make an game for my android phone.
im on a windows7 pc and its connected to an htc wildfire s.
my phone is on android 2.3.5

the game im making works normally but when i add a room with two objects in it wont start.
the two objects are an new game button and an continue button
here's the information about the two objects:

Information about object: obj_Continue
Sprite: spr_Continue
Solid: false
Visible: true
Depth: 0
Persistent: false
Parent: 
Mask: 

Create Event:

execute code:

C=YoYo_AddVirtualKey(0,0,192,64,C)

Key Release Event for C-key Key:

execute code:

YoYo_DeleteVirtualKey(C)

load the game from the file savegame



Information about object: obj_NewGame
Sprite: spr_NewGame
Solid: false
Visible: true
Depth: 0
Persistent: false
Parent: 
Mask: 

Create Event:

execute code:

N=YoYo_AddVirtualKey(0,64,192,128,N)

Key Release Event for N-key Key:

execute code:

YoYo_DeleteVirtualKey(N)

go to room room0 with transition effect Fade out and in




so what im asking is.do anyone know what the problem is ?
  • 0

#2 Kouri

Kouri

    GMC Member

  • GMC Member
  • 157 posts
  • Version:GM:Studio

Posted 12 March 2012 - 03:48 AM

For one thing, you're not using the virtual keys properly. They should read like so:

C=YoYo_AddVirtualKey(0,0,192,64,ord('C'))
N=YoYo_AddVirtualKey(0,64,192,128,ord('N'))

  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users